Merge pull request '1' (#684) from feat-IRONFANS-192-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/684
This commit is contained in:
chenhao 2024-08-06 18:06:20 +08:00
commit f93fe3d592
1 changed files with 1 additions and 0 deletions

View File

@ -1403,6 +1403,7 @@ func (s *Service) OpUpdateZoneThirdPartnerBusinessValidate(ctx *gin.Context, req
ec = errcode.ErrCodeZoneThirdPartnerSrvOk
// 1.业务校验
validator := businessvalidator.NewAuthBusinessValidator(ctx, req).
EnsureZoneThirdPartnerIsNotZoneCreater(_DefaultZone.GetById, req.ZoneThirdPartner.GetZid(), req.ZoneThirdPartner.GetThirdPartnerMid()).
EnsureZoneThirdPartnerSharingRatioIsNotTooLarge(req.ZoneThirdPartner.GetSharingRatio())
// 若不更新代运营,则确保代运营分成比例足够
if req.ZoneThirdPartner.ThirdPartnerMid == nil {