mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 07:22:49 +08:00
feat: 去掉控制器中的运行节点注册机制
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\tools\controller\timer;
|
||||
|
||||
use base\tools\controller\timer\SystemHostBase;
|
||||
|
||||
class SystemHost extends SystemHostBase
|
||||
{
|
||||
}
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user