将所有主要逻辑代码迁移到extend中,并在service中注册调用;

This commit is contained in:
2023-10-18 16:32:28 +08:00
parent a4e56caebb
commit 6195ac6be5
31 changed files with 624 additions and 605 deletions

View File

@@ -4,25 +4,8 @@ declare(strict_types=1);
namespace app\tools\controller\timer;
use app\common\controller\TimerController;
use think\facade\Console;
use base\tools\controller\timer\ResetPasswordBase;
class ResetPassword extends TimerController
class ResetPassword extends ResetPasswordBase
{
protected $frequency = 600;
public function do()
{
if (!env('adminsystem.is_demo', false)) {
return $this->error('本功能只有在演示环境下在能使用', '', '/');
}
$output = Console::call('admin:resetPassword', [
'--password=123456'
]);
return $output->fetch();
}
}