|
...
|
...
|
@@ -41,10 +41,10 @@ class Validate |
|
|
|
* @author zbj
|
|
|
|
* @date 2025/2/27
|
|
|
|
*/
|
|
|
|
public static function phone($email)
|
|
|
|
public static function phone($phone)
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
$res = HttpUtils::get('https://fob.ai.cc/api/check_phone', ['phone' => $email]);
|
|
|
|
$res = HttpUtils::get('https://fob.ai.cc/api/check_phone', ['phone' => $phone]);
|
|
|
|
$res = Arr::s2a($res);
|
|
|
|
$status = $res['data']['valid_status'] ?? 0;
|
|
|
|
} catch (\Exception | GuzzleException $e) {
|
|
...
|
...
|
@@ -52,4 +52,21 @@ class Validate |
|
|
|
}
|
|
|
|
return !($status == 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :验证
|
|
|
|
* @name :check_data
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/3/4 17:16
|
|
|
|
*/
|
|
|
|
public static function check_data($data,$type)
|
|
|
|
{
|
|
|
|
if($type == 1){
|
|
|
|
$res = HttpUtils::get('https://fob.ai.cc/api/check_email', ['email' => $data]);
|
|
|
|
}else{
|
|
|
|
$res = HttpUtils::get('https://fob.ai.cc/api/check_phone', ['phone' => $data]);
|
|
|
|
}
|
|
|
|
return Arr::s2a($res);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|