mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-28 14:57:22 +08:00
refactor: 规范状态码、抛出异常的使用
This commit is contained in:
@@ -20,7 +20,7 @@ class UnBind extends Telegram {
|
||||
}
|
||||
$user->telegram_id = NULL;
|
||||
if (!$user->save()) {
|
||||
throw new ApiException(500, '解绑失败');
|
||||
throw new ApiException('解绑失败');
|
||||
}
|
||||
$telegramService->sendMessage($message->chat_id, '解绑成功', 'markdown');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user