|
|
|
@ -137,6 +137,16 @@ class AdminUser extends BaseController |
|
|
|
*/ |
|
|
|
public function clean() |
|
|
|
{ |
|
|
|
$password = Request::param('password'); |
|
|
|
if (empty($password)) return $this->renderError('密码不能为空'); |
|
|
|
|
|
|
|
$adminData = $this->request->userInfo; |
|
|
|
|
|
|
|
$AdminUser = new AdminModel(); |
|
|
|
$validatePassword = $AdminUser->validatePassword($adminData['id'],$password); |
|
|
|
if (!$validatePassword['status']) return $this->renderError($validatePassword['msg']); |
|
|
|
|
|
|
|
return $this->renderSuccess('已清除成功'); |
|
|
|
# 获取所有表名 |
|
|
|
$tables = Db::query('SHOW TABLES'); |
|
|
|
$tablesNameArr = []; |
|
|
|
|