feat: 增加内置节点注册任务;优化定时器代码结构;

This commit is contained in:
augushong
2025-08-23 23:22:52 +08:00
parent 716e56b8dc
commit a9d1429000
7 changed files with 163 additions and 97 deletions

View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace base\tools\controller\timer;
use app\common\controller\TimerController;
use app\common\service\HostService;
use think\facade\Db;
use think\facade\Log;
class SystemHostBase extends TimerController
{
protected $frequency = 10;
public function do()
{
HostService::heartbeat();
return 'success';
}
}