Merge pull request '修复错误码' (#114) from feat-IRONFANS-53-20240205-Robin into main

Reviewed-on: #114
This commit is contained in:
chenhao 2024-02-07 13:47:58 +08:00
commit 0b2d00d47e
1 changed files with 2 additions and 1 deletions

View File

@ -525,6 +525,7 @@ func (s *Service) ApiGetStreamerWxIdBusinessValidate(ctx *gin.Context, req *stre
} }
func (s *Service) ApiCreateMomentBusinessValidate(ctx *gin.Context, req *momentproto.ApiCreateReq) (ec errcode.ErrCode) { func (s *Service) ApiCreateMomentBusinessValidate(ctx *gin.Context, req *momentproto.ApiCreateReq) (ec errcode.ErrCode) {
ec = errcode.ErrCodeMomentSrvOk
resultList := businessvalidator.NewAuthBusinessValidator(ctx, req). resultList := businessvalidator.NewAuthBusinessValidator(ctx, req).
QueryMomentCreateTimes(_DefaultMomentCreateTimes.OpGetAndUpdate, req.GetBaseRequest().Mid). QueryMomentCreateTimes(_DefaultMomentCreateTimes.OpGetAndUpdate, req.GetBaseRequest().Mid).
@ -533,7 +534,7 @@ func (s *Service) ApiCreateMomentBusinessValidate(ctx *gin.Context, req *momentp
Collect() Collect()
ec, _ = resultList[0].(errcode.ErrCode) ec, _ = resultList[0].(errcode.ErrCode)
if ec != errcode.ErrCodeLoginSrvOk { if ec != errcode.ErrCodeLoginSrvOk {
logger.Error("ApiSendVeriCodeBusinessValidate business validation failed!") logger.Error("ApiCreateMomentBusinessValidate business validation failed!")
return return
} }