This commit is contained in:
parent
2af8e89b0d
commit
f9924cb7cb
|
@ -485,7 +485,7 @@ func (s *Service) ApiCreateStreamerAuthApprovalBasicBusinessValidate(ctx *gin.Co
|
|||
|
||||
result := businessvalidator.NewAuthBusinessValidator(ctx, req).
|
||||
QueryAccount(_DefaultAccount.OpListByMid).
|
||||
EnsureIsThisRole(consts.Streamer).
|
||||
EnsureIsNotThisRole(consts.Streamer).
|
||||
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalBasic.Avatar).
|
||||
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalBasic.AccountShot).
|
||||
Validate().
|
||||
|
@ -502,6 +502,8 @@ func (s *Service) ApiCreateStreamerAuthApprovalDetailsBusinessValidate(ctx *gin.
|
|||
ec = errcode.ErrCodeStreamerAuthApprovalSrvOk
|
||||
|
||||
result := businessvalidator.NewAuthBusinessValidator(ctx, req).
|
||||
QueryAccount(_DefaultAccount.OpListByMid).
|
||||
EnsureIsNotThisRole(consts.Streamer).
|
||||
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalDetails.Cover).
|
||||
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalDetails.Shorts).
|
||||
EnsureMediaIsSuccessfullyUploaded(req.StreamerAuthApprovalDetails.Album).
|
||||
|
|
Loading…
Reference in New Issue