by Robin at 20240808

This commit is contained in:
Leufolium 2024-08-08 17:29:32 +08:00
parent 50d3ab3040
commit 75d7645bfb
1 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ func (s *Service) ApiCreateStreamerAuthApprovalBusinessValidate(ctx *gin.Context
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApproval.Shorts). EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApproval.Shorts).
EnsureIsOperatingHisOwn(util.DerefInt64(req.StreamerAuthApproval.Mid)). EnsureIsOperatingHisOwn(util.DerefInt64(req.StreamerAuthApproval.Mid)).
EnsureStreamerAuthApprovalIsUnique(_DefaultStreamerAuthApproval.OpCreateStreamerAuthApprovalVersion, _DefaultStreamerAuthApproval.GetStreamerAuthApprovalVersion, EnsureStreamerAuthApprovalIsUnique(_DefaultStreamerAuthApproval.OpCreateStreamerAuthApprovalVersion, _DefaultStreamerAuthApproval.GetStreamerAuthApprovalVersion,
consts.StreamerAuthApproval_OneOffVersion, util.DerefInt64(req.StreamerAuthApproval.Mid)). consts.StreamerAuthApproval_OneOffVersion, req.BaseRequest.Mid).
Validate(). Validate().
Collect() Collect()
if ec = result[0].(errcode.ErrCode); ec != errcode.ErrCodeOk { if ec = result[0].(errcode.ErrCode); ec != errcode.ErrCodeOk {
@ -493,7 +493,7 @@ func (s *Service) ApiCreateStreamerAuthApprovalBasicBusinessValidate(ctx *gin.Co
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalBasic.Avatar). EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalBasic.Avatar).
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalBasic.AccountShot). EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalBasic.AccountShot).
EnsureStreamerAuthApprovalIsUnique(_DefaultStreamerAuthApproval.OpCreateStreamerAuthApprovalVersion, _DefaultStreamerAuthApproval.GetStreamerAuthApprovalVersion, EnsureStreamerAuthApprovalIsUnique(_DefaultStreamerAuthApproval.OpCreateStreamerAuthApprovalVersion, _DefaultStreamerAuthApproval.GetStreamerAuthApprovalVersion,
consts.StreamerAuthApproval_SeparateVersion, util.DerefInt64(req.StreamerAuthApprovalBasic.Mid)). consts.StreamerAuthApproval_SeparateVersion, req.BaseRequest.Mid).
Validate(). Validate().
Collect() Collect()
if ec = result[0].(errcode.ErrCode); ec != errcode.ErrCodeOk { if ec = result[0].(errcode.ErrCode); ec != errcode.ErrCodeOk {