seven 4 dní pred
rodič
commit
1b3b08a14e

+ 2 - 2
app/Http/Controllers/api/TelegramWebHook.php

@@ -39,8 +39,8 @@ class TelegramWebHook extends Controller
         // }
         $update = $telegram->getWebhookUpdate(); // 获取更新数据
         $update->callbackQuery;
-        Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
         if ($update->has('callback_query')) {
+            Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
 
         }else {
             $update = $request->all();
@@ -49,7 +49,7 @@ class TelegramWebHook extends Controller
                 $chatId = $message['chat']['id'];
                 $messageId = $message['message_id'];
 
-                
+                Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
             }
 
         }