no message
This commit is contained in:
parent
548acbb555
commit
4b7ade01bb
@ -39,6 +39,17 @@ final class HookController
|
|||||||
// 获取更新
|
// 获取更新
|
||||||
@$update = json_decode(file_get_contents("php://input"), true);
|
@$update = json_decode(file_get_contents("php://input"), true);
|
||||||
|
|
||||||
|
// 假设 $test 是你要检查的变量
|
||||||
|
// $test = 1;
|
||||||
|
|
||||||
|
// if ($test == 1) {
|
||||||
|
// 将 $update 转换为 JSON 格式
|
||||||
|
$json_data = json_encode($update, JSON_PRETTY_PRINT);
|
||||||
|
|
||||||
|
// 将 JSON 数据写入当前目录下的 gettghook.txt 文件
|
||||||
|
file_put_contents('gettghook.txt', $json_data);
|
||||||
|
// }
|
||||||
|
|
||||||
// 获取聊天 ID
|
// 获取聊天 ID
|
||||||
// $chatId = $update["message"]["chat"]["id"];
|
// $chatId = $update["message"]["chat"]["id"];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user