mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-07 14:19:46 +08:00
修改状态
This commit is contained in:
parent
2b0dea961c
commit
5353363c4f
@ -76,7 +76,9 @@ class User extends Controller
|
|||||||
]);
|
]);
|
||||||
$newPath = rtrim($path, '-') . "-{$user['id']}-";
|
$newPath = rtrim($path, '-') . "-{$user['id']}-";
|
||||||
$oldPath = rtrim($user['path'], '-') . "-{$user['id']}-";
|
$oldPath = rtrim($user['path'], '-') . "-{$user['id']}-";
|
||||||
$this->app->db->name('DataUser')->whereLike('path', "{$oldPath}%")->ex;
|
$this->app->db->name('DataUser')->whereLike('path', "{$oldPath}%")->update([
|
||||||
|
'path' => $this->app->db->raw("rep"),
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
$this->success('修改推荐人成功!');
|
$this->success('修改推荐人成功!');
|
||||||
} catch (\think\exception\HttpResponseException $exception) {
|
} catch (\think\exception\HttpResponseException $exception) {
|
||||||
|
@ -83,7 +83,9 @@ abstract class Auth extends Controller
|
|||||||
*/
|
*/
|
||||||
protected function checkUserStatus()
|
protected function checkUserStatus()
|
||||||
{
|
{
|
||||||
$this->error('抱歉,账户已被冻结!');
|
if (empty($this->user['status'])) {
|
||||||
|
$this->error('抱歉,账户已被冻结!');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user