This commit is contained in:
net909
2024-07-07 15:54:11 +08:00
parent bf6a091c8d
commit 57a237f898
16 changed files with 346 additions and 14 deletions
+4
View File
@@ -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();
}
}