This commit is contained in:
Leufolium 2024-08-06 18:06:05 +08:00
parent 99e9c625cd
commit c46ef27288
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 {