Compare commits
2 Commits
1ab3cebf83
...
19f8af71bb
Author | SHA1 | Date | |
---|---|---|---|
19f8af71bb | |||
62e1eff1cf |
@ -10,6 +10,8 @@ use support\Log;
|
|||||||
*/
|
*/
|
||||||
class SendCode
|
class SendCode
|
||||||
{
|
{
|
||||||
|
|
||||||
|
protected static $token = 'druid_ccefa62b-243a-4bdb-8460-89f3b36e79f8';
|
||||||
/**
|
/**
|
||||||
* 发送验证码
|
* 发送验证码
|
||||||
* code 状态码 0 成功 1 token无效或已过期 2 端口不足 3 账号已存在 int
|
* code 状态码 0 成功 1 token无效或已过期 2 端口不足 3 账号已存在 int
|
||||||
@ -20,7 +22,7 @@ class SendCode
|
|||||||
$client = new Client(); // 创建 Guzzle 客户端
|
$client = new Client(); // 创建 Guzzle 客户端
|
||||||
// 请求数据
|
// 请求数据
|
||||||
$data = [
|
$data = [
|
||||||
"token" => "druid_6aa47680-56e6-423f-866d-e190700725fd",
|
"token" => self::$token,
|
||||||
"phoneNumber" => $phone,
|
"phoneNumber" => $phone,
|
||||||
"business" => 0,
|
"business" => 0,
|
||||||
];
|
];
|
||||||
@ -44,7 +46,7 @@ class SendCode
|
|||||||
|
|
||||||
// 请求数据
|
// 请求数据
|
||||||
$data = [
|
$data = [
|
||||||
"token" => "druid_6aa47680-56e6-423f-866d-e190700725fd",
|
"token" => self::$token,
|
||||||
"phoneNumber" => $phone,
|
"phoneNumber" => $phone,
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -70,7 +72,7 @@ class SendCode
|
|||||||
$client = new Client(); // 创建 Guzzle 客户端
|
$client = new Client(); // 创建 Guzzle 客户端
|
||||||
|
|
||||||
|
|
||||||
$url = "https://dx1.rocketgo.vip/ex-api/biz/api/wsStatus?wsNumber=" . $phone . "&token=druid_6aa47680-56e6-423f-866d-e190700725fd";
|
$url = "https://dx1.rocketgo.vip/ex-api/biz/api/wsStatus?wsNumber=" . $phone . "&token=".self::$token;
|
||||||
// 发送 POST 请求
|
// 发送 POST 请求
|
||||||
$response = $client->get("$url");
|
$response = $client->get("$url");
|
||||||
$body = $response->getBody();
|
$body = $response->getBody();
|
||||||
|
@ -80,10 +80,6 @@
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
})
|
})
|
||||||
|
|
||||||
if (window.location.protocol === 'http:') { // http 强制改成 https
|
|
||||||
window.location.href = window.location.href.replace('http:', 'https:');
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</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>
|
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user