Tokumeikoi 5 years ago
parent
commit
a1f2290ff2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/User/TicketController.php

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

@@ -51,7 +51,7 @@ class TicketController extends Controller
     public function save(TicketSave $request)
     {
         DB::beginTransaction();
-        if ((int)Ticket::where('status', 0)->count()) {
+        if ((int)Ticket::where('status', 0)->where('user_id', $request->session()->get('id'))->count()) {
             abort(500, '存在其他工单尚未处理');
         }
         $ticket = Ticket::create(array_merge($request->only([