Files
ulthon_admin/extend/base/tools/controller/timer/SystemHostBase.php

23 lines
375 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;
class SystemHostBase extends TimerController
{
protected $frequency = 10;
public function do()
{
HostService::heartbeat();
return 'success';
}
}