|
@@ -28,18 +28,18 @@ class TelegramWebHook extends Controller
|
|
|
{
|
|
|
public function handle(Request $request)
|
|
|
{
|
|
|
- Log::error('Telegram 日志写入测试: ' . json_encode([888888888888888888], JSON_UNESCAPED_UNICODE));
|
|
|
+ Log::error('Telegram 日志写入测试: ' . json_encode([999999999999999], JSON_UNESCAPED_UNICODE));
|
|
|
// try {
|
|
|
- $m = new Message();
|
|
|
- $m->json = $request->ip();
|
|
|
- $m->save();
|
|
|
- $telegram = new Api(config('services.telegram.token'));
|
|
|
+ // $m = new Message();
|
|
|
+ // $m->json = $request->ip();
|
|
|
+ // $m->save();
|
|
|
+ // $telegram = new Api(config('services.telegram.token'));
|
|
|
// } catch (TelegramSDKException $e) {
|
|
|
// return response()->json(['status' => 'ok']);
|
|
|
// }
|
|
|
- $update = $telegram->getWebhookUpdate(); // 获取更新数据
|
|
|
- $update->callbackQuery;
|
|
|
- Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
|
|
|
+ // $update = $telegram->getWebhookUpdate(); // 获取更新数据
|
|
|
+ // $update->callbackQuery;
|
|
|
+ // Log::error('Telegram 回调数据(JSON): ' . json_encode($update, JSON_UNESCAPED_UNICODE));
|
|
|
return response()->json(['status' => 'ok']);
|
|
|
}
|
|
|
|