feat-IRONFANS-160-Robin #586

Merged
chenhao merged 3 commits from feat-IRONFANS-160-Robin into main 2024-07-02 21:13:00 +08:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit c022b0246a - Show all commits

View File

@ -1695,6 +1695,10 @@ func (s *Service) ApiCreateMoment(ctx *gin.Context, req *momentproto.ApiCreateRe
req.Moment.Mid = goproto.Int64(req.BaseRequest.Mid)
var accountpunishment *dbstruct.AccountPunishment
if ec, accountpunishment = s.ApiCreateMomentBusinessValidate(ctx, req); ec != errcode.ErrCodeMomentSrvOk {
if ec == errcode.ErrCodeRolePrivilegesNotEnough {
ec = errcode.ErrCodeMomentNotAStreamer
return
}
if ec == errcode.ErrCodeAccountPunishmentExist {
if accountpunishment.IsPermanent() {
ec = errcode.ErrCodeFunctionBlockedPermanently