Merge pull request 'by Robin at 20240522' (#471) from feat-IRONFANS-118-Robin-2 into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/471
This commit is contained in:
commit
40bafbb0af
|
@ -1,6 +1,7 @@
|
|||
package service
|
||||
|
||||
import (
|
||||
"service/api/base"
|
||||
"service/api/errcode"
|
||||
accountproto "service/api/proto/account/proto"
|
||||
accountpunishmentproto "service/api/proto/accountpunishment/proto"
|
||||
|
@ -1439,7 +1440,7 @@ func (s *Service) OpUpdateZoneThirdPartnerBusinessValidate(ctx *gin.Context, req
|
|||
Validate().
|
||||
Collect()
|
||||
if ec = result[0].(errcode.ErrCode); ec != errcode.ErrCodeOk {
|
||||
logger.Error("OpHeadMoment business validation failed")
|
||||
logger.Error("OpUpdateZoneThirdPartner business validation failed")
|
||||
return
|
||||
}
|
||||
return
|
||||
|
@ -1448,7 +1449,7 @@ func (s *Service) OpUpdateZoneThirdPartnerBusinessValidate(ctx *gin.Context, req
|
|||
func (s *Service) OpDeleteZoneThirdPartnerBusinessValidate(ctx *gin.Context, zid int64) (ec errcode.ErrCode) {
|
||||
ec = errcode.ErrCodeZoneThirdPartnerSrvOk
|
||||
// 1.业务校验
|
||||
result := businessvalidator.NewAuthBusinessValidator(ctx, nil).
|
||||
result := businessvalidator.NewAuthBusinessValidator(ctx, &base.BaseRequest{}).
|
||||
EnsureZoneThirdPartnerSharingRatioIsEnough(func(ctx *gin.Context, zid int64) ([]*dbstruct.ZoneCollaborator, error) {
|
||||
return _DefaultZoneCollaborator.OpList(ctx, &zone_collaborator_proto.OpListReq{
|
||||
Zid: goproto.Int64(zid),
|
||||
|
@ -1457,7 +1458,7 @@ func (s *Service) OpDeleteZoneThirdPartnerBusinessValidate(ctx *gin.Context, zid
|
|||
Validate().
|
||||
Collect()
|
||||
if ec = result[0].(errcode.ErrCode); ec != errcode.ErrCodeOk {
|
||||
logger.Error("OpHeadMoment business validation failed")
|
||||
logger.Error("OpDeleteZoneThirdPartner business validation failed")
|
||||
return
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue