diff --git a/app/mix/controller/vas.go b/app/mix/controller/vas.go index e9109ce4..840ada60 100644 --- a/app/mix/controller/vas.go +++ b/app/mix/controller/vas.go @@ -237,8 +237,8 @@ func WithdrawPage(ctx *gin.Context) { } var WithdrawFreezeMidMap = map[int64]bool{ - 16311: true, - 159: true, + //16311: true, + 159: true, } func isWithdrawFreeze(mid int64) bool { diff --git a/app/mix/service/opservice_business_validation.go b/app/mix/service/opservice_business_validation.go index 2322ff7c..948d70bc 100644 --- a/app/mix/service/opservice_business_validation.go +++ b/app/mix/service/opservice_business_validation.go @@ -1452,6 +1452,24 @@ func (s *Service) OpUpdateZoneThirdPartnerBusinessValidate(ctx *gin.Context, req return } +// 代运营 +func (s *Service) OpCreateZoneThirdPartnerBusinessValidate(ctx *gin.Context, req *zone_third_partner_proto.OpCreateReq) (ec errcode.ErrCode) { + ec = errcode.ErrCodeZoneThirdPartnerSrvOk + + // 1.鉴权校验 + result := businessvalidator.NewAuthBusinessValidator(ctx, req). + EnsureZoneThirdPartnerIsNotZoneCreater(_DefaultZone.GetById, req.ZoneThirdPartner.GetZid(), req.ZoneThirdPartner.GetThirdPartnerMid()). + Validate(). + Collect() + ec, _ = result[0].(errcode.ErrCode) + if ec != errcode.ErrCodeOk { + logger.Error("OpCreateZoneThirdPartner business validation failed!") + return + } + + return +} + func (s *Service) OpCreateZoneMomentBusinessValidate(ctx *gin.Context, req *zonemomentproto.OpCreateReq) (ec errcode.ErrCode, accountpunishment *dbstruct.AccountPunishment) { ec = errcode.ErrCodeMomentSrvOk @@ -1501,21 +1519,3 @@ func (s *Service) OpUpdateZoneMomentBusinessValidate(ctx *gin.Context, req *zone return } - -// 代运营 -func (s *Service) OpCreateZoneThirdPartnerBusinessValidate(ctx *gin.Context, req *zone_third_partner_proto.OpCreateReq) (ec errcode.ErrCode) { - ec = errcode.ErrCodeZoneThirdPartnerSrvOk - - // 1.鉴权校验 - result := businessvalidator.NewAuthBusinessValidator(ctx, req). - EnsureZoneThirdPartnerIsNotZoneCreater(_DefaultZone.GetById, req.ZoneThirdPartner.GetZid(), req.ZoneThirdPartner.GetThirdPartnerMid()). - Validate(). - Collect() - ec, _ = result[0].(errcode.ErrCode) - if ec != errcode.ErrCodeOk { - logger.Error("OpCreateZoneThirdPartner business validation failed!") - return - } - - return -}