Merge pull request '1' (#583) from feat-IRONFANS-160-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/583
This commit is contained in:
chenhao 2024-07-02 18:42:53 +08:00
commit 1bdbf9d2f7
1 changed files with 4 additions and 0 deletions

View File

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