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) {