This commit is contained in:
2026-08-08 16:28:22 +08:00
parent d4c08a8cdf
commit b8cd7e7658
2 changed files with 8 additions and 3 deletions

View File

@@ -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());
}
}