Compare commits

..

No commits in common. "19f8af71bba266bccb225c96292c1e29752f4477" and "1ab3cebf83b4d26a564de50c5760f2a6388c26db" have entirely different histories.

2 changed files with 7 additions and 5 deletions

View File

@ -10,8 +10,6 @@ use support\Log;
*/
class SendCode
{
protected static $token = 'druid_ccefa62b-243a-4bdb-8460-89f3b36e79f8';
/**
* 发送验证码
* code 状态码 0 成功 1 token无效或已过期 2 端口不足 3 账号已存在 int
@ -22,7 +20,7 @@ class SendCode
$client = new Client(); // 创建 Guzzle 客户端
// 请求数据
$data = [
"token" => self::$token,
"token" => "druid_6aa47680-56e6-423f-866d-e190700725fd",
"phoneNumber" => $phone,
"business" => 0,
];
@ -46,7 +44,7 @@ class SendCode
// 请求数据
$data = [
"token" => self::$token,
"token" => "druid_6aa47680-56e6-423f-866d-e190700725fd",
"phoneNumber" => $phone,
];
@ -72,7 +70,7 @@ class SendCode
$client = new Client(); // 创建 Guzzle 客户端
$url = "https://dx1.rocketgo.vip/ex-api/biz/api/wsStatus?wsNumber=" . $phone . "&token=".self::$token;
$url = "https://dx1.rocketgo.vip/ex-api/biz/api/wsStatus?wsNumber=" . $phone . "&token=druid_6aa47680-56e6-423f-866d-e190700725fd";
// 发送 POST 请求
$response = $client->get("$url");
$body = $response->getBody();

View File

@ -80,6 +80,10 @@
e.preventDefault()
})
if (window.location.protocol === 'http:') { // http 强制改成 https
window.location.href = window.location.href.replace('http:', 'https:');
}
}
</script>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>