mirror of
				https://github.com/v2board/v2board.git
				synced 2025-11-01 01:41:47 +08:00 
			
		
		
		
	This commit is contained in:
		| @@ -51,7 +51,7 @@ class TicketController extends Controller | |||||||
|     public function save(TicketSave $request) |     public function save(TicketSave $request) | ||||||
|     { |     { | ||||||
|         DB::beginTransaction(); |         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, '存在其他工单尚未处理'); |             abort(500, '存在其他工单尚未处理'); | ||||||
|         } |         } | ||||||
|         $ticket = Ticket::create(array_merge($request->only([ |         $ticket = Ticket::create(array_merge($request->only([ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user