wip
This commit is contained in:
@@ -49,6 +49,9 @@ class Ticket extends BaseController
|
||||
$result = $ticketService->createTicket($data);
|
||||
return $this->success('创建成功', $result);
|
||||
} catch (\Exception $e) {
|
||||
if ($e->getCode() === 409) {
|
||||
return $this->error($e->getMessage(), ['confirm' => true], 409);
|
||||
}
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user