新增定时任务功能;

This commit is contained in:
augushong
2022-02-28 21:31:07 +08:00
parent f4b7371dbd
commit 0f0a1a72af
9 changed files with 177 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace app\tools\controller\timer;
use app\common\controller\ToolsController;
use think\facade\Console;
class ResetPassword extends ToolsController
{
public function do()
{
$output = Console::call('admin:resetPassword', [
'--password=123456'
]);
return $output->fetch();
}
}