merge
This commit is contained in:
commit
fd79830b22
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue