by Robin at 20240808
This commit is contained in:
parent
50d3ab3040
commit
75d7645bfb
|
@ -430,7 +430,7 @@ func (s *Service) ApiCreateStreamerAuthApprovalBusinessValidate(ctx *gin.Context
|
|||
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApproval.Shorts).
|
||||
EnsureIsOperatingHisOwn(util.DerefInt64(req.StreamerAuthApproval.Mid)).
|
||||
EnsureStreamerAuthApprovalIsUnique(_DefaultStreamerAuthApproval.OpCreateStreamerAuthApprovalVersion, _DefaultStreamerAuthApproval.GetStreamerAuthApprovalVersion,
|
||||
consts.StreamerAuthApproval_OneOffVersion, util.DerefInt64(req.StreamerAuthApproval.Mid)).
|
||||
consts.StreamerAuthApproval_OneOffVersion, req.BaseRequest.Mid).
|
||||
Validate().
|
||||
Collect()
|
||||
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.AccountShot).
|
||||
EnsureStreamerAuthApprovalIsUnique(_DefaultStreamerAuthApproval.OpCreateStreamerAuthApprovalVersion, _DefaultStreamerAuthApproval.GetStreamerAuthApprovalVersion,
|
||||
consts.StreamerAuthApproval_SeparateVersion, util.DerefInt64(req.StreamerAuthApprovalBasic.Mid)).
|
||||
consts.StreamerAuthApproval_SeparateVersion, req.BaseRequest.Mid).
|
||||
Validate().
|
||||
Collect()
|
||||
if ec = result[0].(errcode.ErrCode); ec != errcode.ErrCodeOk {
|
||||
|
|
Loading…
Reference in New Issue