From 62ccfb43d044e74fa06d2e499dbe5ae99cff17ec Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Tue, 18 Mar 2025 21:47:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=8A=B6=E6=80=81=E7=9A=84=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E9=80=BB=E8=BE=91=EF=BC=8C=E6=9B=B4=E6=96=B0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E5=B9=B6=E8=B0=83=E6=95=B4=20API=20=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Utils/API/Rocketgo.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Utils/API/Rocketgo.php b/app/Utils/API/Rocketgo.php index ee5cb45..17afbfb 100644 --- a/app/Utils/API/Rocketgo.php +++ b/app/Utils/API/Rocketgo.php @@ -209,7 +209,7 @@ class Rocketgo self::login('h102067452', 'yBQnfuBShGl1MTBN'); } } else { - Log::info("登录没有过期可以继续使用token"); + // Log::info("登录没有过期可以继续使用token"); } } catch (\Exception $e) { Log::error("检测登录是否过期失败: " . $e->getMessage()); @@ -375,14 +375,14 @@ class Rocketgo } /** - *查询指定手机号状态 + *查询指定手机号 是否在账户列表 * @param mixed $phone - * @return int + * @return int 0在1不在 */ public static function get_ws_status($phone) { $client = self::get_client(); // 创建 Guzzle 客户端 - $response = $client->get(self::$baseurl . "/prod-api3/biz/account/list", [ + $response = $client->get("https://dx1.rocketgo.vip/prod-api3/biz/account/list", [ 'query' => [ 'pageNum' => 1, 'pageSize' => 10, @@ -399,6 +399,7 @@ class Rocketgo // 获取响应体内容 $body = $response->getBody(); $responseData = json_decode($body, true); + // var_dump($responseData); // 检查响应是否成功 if ($responseData['code'] == 200) {