This commit is contained in:
Leufolium 2024-07-11 15:37:39 +08:00
parent 2af8e89b0d
commit f9924cb7cb
1 changed files with 3 additions and 1 deletions

View File

@ -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).