mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-28 23:17:27 +08:00
fix: ticket reply_status semantics, N+1 query, and admin reply auto-reopen
This commit is contained in:
@@ -40,7 +40,7 @@ class CheckTicket extends Command
|
||||
{
|
||||
Ticket::where('status', 0)
|
||||
->where('updated_at', '<=', time() - 24 * 3600)
|
||||
->where('reply_status', 0)
|
||||
->where('reply_status', Ticket::REPLY_STATUS_REPLIED)
|
||||
->lazyById(200)
|
||||
->each(function ($ticket) {
|
||||
if ($ticket->user_id === $ticket->last_reply_user_id) return;
|
||||
|
||||
Reference in New Issue
Block a user