Ken hai 3 días
pai
achega
4c49ebbaf6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      app/Http/Controllers/api/TelegramWebHook.php

+ 3 - 0
app/Http/Controllers/api/TelegramWebHook.php

@@ -78,6 +78,7 @@ class TelegramWebHook extends BaseController
                 } //
                 catch (TelegramSDKException $e) {
                     DB::rollBack();
+                    LogService::error($e);
                     $telegram->sendMessage(['chat_id' => $chatId, 'text' => '‼️‼️系统发生了错误,请联系客服']);
                 }//
                 catch (Exception $e) {
@@ -110,6 +111,7 @@ class TelegramWebHook extends BaseController
                     } //
                     catch (TelegramSDKException $e) {
                         DB::rollBack();
+                        LogService::error($e);
                         $telegram->sendMessage(['chat_id' => $chatId, 'text' => '‼️‼️系统发生了错误,请联系客服']);
                     }//
                     catch (Exception $e) {
@@ -122,6 +124,7 @@ class TelegramWebHook extends BaseController
             }
         } //
         catch (Exception $e) {
+            LogService::error($e);
             if (!empty($chatId)) {
                 $telegram->sendMessage(['chat_id' => $chatId, 'text' => '‼️‼️系统发生了错误,请联系客服']);
             }