|
@@ -167,11 +167,11 @@ class Home extends Controller
|
|
];
|
|
];
|
|
$res = $telegram->setWebhook(['url' => $webhookUrl, 'allowed_updates' => $allowed_updates, 'drop_pending_updates' => true]);
|
|
$res = $telegram->setWebhook(['url' => $webhookUrl, 'allowed_updates' => $allowed_updates, 'drop_pending_updates' => true]);
|
|
|
|
|
|
-
|
|
|
|
|
|
+ var_dump($res);
|
|
} 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));
|
|
|
|
|
|
+ Log::info('Telegram 回调数据(JSON): ' . json_encode([123454], JSON_UNESCAPED_UNICODE));
|
|
return $this->success($res);
|
|
return $this->success($res);
|
|
}
|
|
}
|
|
|
|
|