Fix iOS admin log initial bounds
This commit is contained in:
parent
44e8cde27f
commit
e90dbdf5a3
2 changed files with 15 additions and 0 deletions
|
|
@ -743,6 +743,9 @@ func (s *Service) ListAdminLog(ctx context.Context, userID int64, req domain.Cha
|
|||
if req.UserID == 0 {
|
||||
req.UserID = userID
|
||||
}
|
||||
if req.MinID < 0 {
|
||||
req.MinID = 0
|
||||
}
|
||||
if req.UserID != userID || req.ChannelID == 0 || req.MaxID < 0 || req.MinID < 0 {
|
||||
return domain.ChannelAdminLogResult{}, domain.ErrChannelInvalid
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue