seven 5 天之前
父节点
当前提交
590e23d6ff
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Http/Controllers/api/Home.php

+ 2 - 1
app/Http/Controllers/api/Home.php

@@ -9,6 +9,7 @@ use Telegram\Bot\Api;
 use Telegram\Bot\Exceptions\TelegramSDKException;
 use Telegram\Bot\Exceptions\TelegramSDKException;
 use Telegram\Bot\FileUpload\InputFile;
 use Telegram\Bot\FileUpload\InputFile;
 use Telegram\Bot\Objects\BotCommand;
 use Telegram\Bot\Objects\BotCommand;
+use Illuminate\Support\Facades\Log;
 
 
 class Home extends Controller
 class Home extends Controller
 {
 {
@@ -170,7 +171,7 @@ class Home extends Controller
         } catch (TelegramSDKException $e) {
         } catch (TelegramSDKException $e) {
             return $this->error($e->getCode(), $e->getMessage());
             return $this->error($e->getCode(), $e->getMessage());
         }
         }
-
+        Log::error('Telegram 回调数据(JSON): ' . json_encode([123454], JSON_UNESCAPED_UNICODE));
         return $this->success($res);
         return $this->success($res);
     }
     }