This commit is contained in:
parent
99e9c625cd
commit
c46ef27288
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue