From a631e53f4a8c74b946f2d16a7a9d3e4c69c0b987 Mon Sep 17 00:00:00 2001 From: admin <3364509428@qq.com> Date: Fri, 17 Oct 2025 23:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20More/Get.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- More/Get.php | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 More/Get.php diff --git a/More/Get.php b/More/Get.php deleted file mode 100644 index 5bda91d..0000000 --- a/More/Get.php +++ /dev/null @@ -1,50 +0,0 @@ - '19884551721', - 'password' => 'LX5bH76SJf9E' -]; - -// 初始化cURL -$ch = curl_init($url); -curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // 返回响应内容而不直接输出 -curl_setopt($ch, CURLOPT_POST, true); // 使用POST方法 -curl_setopt($ch, CURLOPT_HTTPHEADER, [ - 'Content-Type: application/json' // 设置JSON头 -]); -curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload)); // JSON编码数据 - -// 执行请求 -$response = curl_exec($ch); -$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); -$error = curl_error($ch); -curl_close($ch); - -// 处理响应 -if ($httpCode === 200) { - $data = json_decode($response); - if (isset($data->jwt)) { - $jwt = $data->jwt; - -$file = 'jwt.txt'; - -// 将数据写入文件 -file_put_contents($file, $jwt); - - } else { - echo "响应中缺少JWT令牌"; - } -} else { - echo "认证失败,错误信息:" . ($response ?: '无响应内容'); -} - -// 错误处理 -if ($error) { - echo "cURL错误:" . $error; -} - -