mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-07-05 15:45:23 +08:00
1.6
This commit is contained in:
@@ -10,6 +10,7 @@ use think\console\input\Argument;
|
||||
use think\console\input\Option;
|
||||
use think\console\Output;
|
||||
use think\facade\Db;
|
||||
use think\facade\Config;
|
||||
use app\lib\OptimizeService;
|
||||
|
||||
class Opiptask extends Command
|
||||
@@ -23,6 +24,9 @@ class Opiptask extends Command
|
||||
|
||||
protected function execute(Input $input, Output $output)
|
||||
{
|
||||
$res = Db::name('config')->cache('configs',0)->column('value','key');
|
||||
Config::set($res, 'sys');
|
||||
|
||||
(new OptimizeService())->execute();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user