mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
24 lines
416 B
PHP
24 lines
416 B
PHP
<?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';
|
||
}
|
||
}
|