Fix iOS admin log initial bounds

This commit is contained in:
HSgram 2026-07-02 19:45:30 +08:00
parent 44e8cde27f
commit e90dbdf5a3
2 changed files with 15 additions and 0 deletions

View file

@ -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
}