fix(账号管理): 修复BulkUpdateAccounts方法中的混合渠道检查逻辑缩进
This commit is contained in:
@@ -991,14 +991,14 @@ func (s *adminServiceImpl) BulkUpdateAccounts(ctx context.Context, input *BulkUp
|
|||||||
}
|
}
|
||||||
platform = account.Platform
|
platform = account.Platform
|
||||||
}
|
}
|
||||||
if err := s.checkMixedChannelRisk(ctx, accountID, platform, *input.GroupIDs); err != nil {
|
if err := s.checkMixedChannelRisk(ctx, accountID, platform, *input.GroupIDs); err != nil {
|
||||||
entry.Success = false
|
entry.Success = false
|
||||||
entry.Error = err.Error()
|
entry.Error = err.Error()
|
||||||
result.Failed++
|
result.Failed++
|
||||||
result.FailedIDs = append(result.FailedIDs, accountID)
|
result.FailedIDs = append(result.FailedIDs, accountID)
|
||||||
result.Results = append(result.Results, entry)
|
result.Results = append(result.Results, entry)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := s.accountRepo.BindGroups(ctx, accountID, *input.GroupIDs); err != nil {
|
if err := s.accountRepo.BindGroups(ctx, accountID, *input.GroupIDs); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user