buvidk1234 1 month ago committed by GitHub
commit 9c775f892a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -112,7 +112,7 @@ func (s *userOnline) SetUserOnline(ctx context.Context, userID string, online, o
end
`
now := time.Now()
argv := make([]any, 0, 2+len(online)+len(offline))
argv := make([]any, 0, 4+len(online)+len(offline))
argv = append(argv, int32(s.expire/time.Second), now.Unix(), now.Add(s.expire).Unix(), int32(len(offline)))
for _, platformID := range offline {
argv = append(argv, platformID)

Loading…
Cancel
Save