root 5 năm trước cách đây
mục cha
commit
2614ae7b33
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/TicketController.php

+ 1 - 1
app/Http/Controllers/TicketController.php

@@ -79,7 +79,7 @@ class TicketController extends Controller
         if (!$ticket) {
             abort(500, '工单不存在');
         }
-        if ($request->session()->get('id') == $this->getLastMessage()->user_id) {
+        if ($request->session()->get('id') == $this->getLastMessage($ticket->id)->user_id) {
             abort(500, '请等待技术支持回复');
         }
         $ticketMessage = TicketMessage::create([