mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
This commit is contained in:
parent
e73cbe9597
commit
7c69e19304
@ -51,6 +51,9 @@ class TicketController extends Controller
|
||||
public function save(TicketSave $request)
|
||||
{
|
||||
DB::beginTransaction();
|
||||
if ((int)Ticket::where('status', 0)->count()) {
|
||||
abort(500, '存在其他工单尚未处理');
|
||||
}
|
||||
$ticket = Ticket::create(array_merge($request->only([
|
||||
'subject',
|
||||
'level'
|
||||
|
Loading…
Reference in New Issue
Block a user