feat: 去掉控制器中的运行节点注册机制

This commit is contained in:
augushong
2025-08-24 14:01:36 +08:00
parent dea794d058
commit 00af0fa628
2 changed files with 0 additions and 34 deletions

View File

@@ -1,11 +0,0 @@
<?php
declare(strict_types=1);
namespace app\tools\controller\timer;
use base\tools\controller\timer\SystemHostBase;
class SystemHost extends SystemHostBase
{
}

View File

@@ -1,23 +0,0 @@
<?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;
// TODO去掉控制器的心跳注册
class SystemHostBase extends TimerController
{
protected $frequency = 10;
public function do()
{
HostService::heartbeat();
return 'success';
}
}