重置超管信息
超管不会出现在 员工列表
中,你可以通过脚本来重置初始化的超管信息
在 txf-server
的 app\Command\ResetSuperAdminCommand
中硬编码配置
public function handle()
{
/**************配置重置信息****************/
$resetData = [
'name' => '张三',
'mobile' => '13333333333',
'password' => '111111',
'login_error_times' => 0
];
$id = 1;
/*************配置重置信息**************/
$adminService = new AdminService();
$adminService->resetSuperAdmin($resetData, $id);
$this->line("重置成功");
return true;
}