This commit is contained in:
2024-11-07 21:44:19 +08:00
parent ea01e93fe9
commit 24f9d2afa2
2 changed files with 10 additions and 2 deletions
+6 -2
View File
@@ -26,8 +26,12 @@ class Server
}
$realname=$session->get('realname',null);
$domain=$url;
$domain_name=parse_url($url)['host'];
if(str_starts_with($url, 'http://')||str_starts_with($url, 'https://')){
$domain=$url;
}else{
$domain='http://'.$url;
}
$domain_name=parse_url($domain)['host'];
$response = Http::post('https://api.uutool.cn/beian/icp/', ['site' => "$domain"])->json();