mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
27 lines
553 B
PHP
27 lines
553 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace base\tools\controller\timer;
|
|
|
|
use app\common\controller\TimerController;
|
|
use think\facade\Console;
|
|
|
|
class ResetPasswordBase extends TimerController
|
|
{
|
|
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();
|
|
}
|
|
}
|