mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
优化定时器的防刷机制;
This commit is contained in:
@@ -4,13 +4,21 @@ declare(strict_types=1);
|
||||
|
||||
namespace app\tools\controller\timer;
|
||||
|
||||
use app\common\controller\ToolsController;
|
||||
use app\common\controller\TimerController;
|
||||
use think\facade\Console;
|
||||
|
||||
class ResetPassword extends ToolsController
|
||||
class ResetPassword extends TimerController
|
||||
{
|
||||
|
||||
protected $frequency = 600;
|
||||
|
||||
public function do()
|
||||
{
|
||||
|
||||
if (!env('adminsystem.is_demo', false)) {
|
||||
return $this->error('本功能只有在演示环境下在能使用', '', '/');
|
||||
}
|
||||
|
||||
$output = Console::call('admin:resetPassword', [
|
||||
'--password=123456'
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user