|
|
@@ -76,16 +76,11 @@ class TelegramWebHook extends BaseController
|
|
|
IssueService::init($telegram, $data, $chatId, $firstName, $messageId);
|
|
|
DB::commit();
|
|
|
} //
|
|
|
- catch (TelegramSDKException $e) {
|
|
|
+ catch (TelegramSDKException|Exception $e) {
|
|
|
DB::rollBack();
|
|
|
LogService::error($e);
|
|
|
$telegram->sendMessage(['chat_id' => $chatId, 'text' => '‼️‼️系统发生了错误,请联系客服']);
|
|
|
}//
|
|
|
- catch (Exception $e) {
|
|
|
- DB::rollBack();
|
|
|
- LogService::error($e);
|
|
|
- $telegram->sendMessage(['chat_id' => $chatId, 'text' => '‼️‼️系统发生了错误,请联系客服']);
|
|
|
- }
|
|
|
} //
|
|
|
else {
|
|
|
$update = $request->all();
|