Merge pull request 'master' (#3) from master into main

Reviewed-on: #3
This commit is contained in:
enoch 2024-11-07 21:47:42 +08:00
commit 5e4c6f957d
4 changed files with 18 additions and 3 deletions

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();

View File

@ -136,3 +136,13 @@
2024-11-05 16:54:59 pid:1636 Workerman[start.php] start in DEBUG mode
2024-11-05 16:55:00 pid:1636 Workerman[start.php] stopping ...
2024-11-05 16:55:00 pid:1636 Workerman[start.php] has been stopped
2024-11-07 18:21:20 pid:9866 Workerman[start.php] start in DEBUG mode
2024-11-07 18:23:59 pid:9866 Workerman[start.php] stopping ...
2024-11-07 18:23:59 pid:9866 Workerman[start.php] has been stopped
2024-11-07 18:24:36 pid:11244 Workerman[start.php] start in DEBUG mode
2024-11-07 18:24:39 pid:11244 Workerman[start.php] stopping ...
2024-11-07 18:24:39 pid:11244 Workerman[start.php] has been stopped
2024-11-07 21:43:27 pid:46886 Workerman[start.php] start in DEBUG mode
2024-11-07 21:43:52 pid:46886 Workerman[start.php] reloading
2024-11-07 21:44:17 pid:46886 Workerman[start.php] stopping ...
2024-11-07 21:44:17 pid:46886 Workerman[start.php] has been stopped

View File

@ -1 +1 @@
a:3:{s:7:"captcha";s:5:"sq8y4";s:4:"user";s:5:"enoch";s:8:"realname";s:9:"以诺书";}
a:1:{s:7:"captcha";s:5:"sq8y4";}

View File

@ -1,4 +1,5 @@
#!/usr/bin/env php
<?php
require_once __DIR__ . '/vendor/autoload.php';
echo "Version: 1.0.3\n";
support\App::run();