This commit is contained in:
Leufolium 2024-11-20 17:24:28 +08:00
parent 6cf254e1c7
commit f0db107a73
1 changed files with 1 additions and 0 deletions

View File

@ -717,6 +717,7 @@ func (s *Service) ApiCreateZoneThirdPartnerBusinessValidate(ctx *gin.Context, re
// 3.鉴权校验
resultList = businessvalidator.NewAuthBusinessValidator(ctx, req).
EnsureIsNotOperatingHisOwn(util.DerefInt64(req.ThirdPartnerMid)).
EnsureZoneThirdPartnerSharingRatioIsNotTooLarge(req.ZoneThirdPartner.GetSharingRatio()).
Validate().
Collect()
ec, _ = resultList[0].(errcode.ErrCode)