Ken hai 1 mes
pai
achega
614474edbc
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  1. 1 6
      app/Http/Controllers/api/TelegramWebHook.php

+ 1 - 6
app/Http/Controllers/api/TelegramWebHook.php

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