Ken 2 hari lalu
induk
melakukan
4c49ebbaf6
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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' => '‼️‼️系统发生了错误,请联系客服']);
             }