登录
This commit is contained in:
@@ -113,8 +113,10 @@ class Login extends Controller
|
||||
//检测是否注销过
|
||||
$config_time = get_system_config_value('cancel_no_login');
|
||||
$is_del = db::name('user')->where(['mobile' => $mobile,'delete_time' => ['<>', 0]])->find();
|
||||
if (time() - $is_del['delete_time'] < $config_time * 24 * 3600) {//30天内注销过
|
||||
return V(0, '注销30天内,不可操作。');
|
||||
if ($is_del) {
|
||||
if (time() - $is_del['delete_time'] < $config_time * 24 * 3600) {//30天内注销过
|
||||
return V(0, '注销30天内,不可操作。');
|
||||
}
|
||||
}
|
||||
|
||||
if(ctype_digit($mobile)){
|
||||
|
||||
Reference in New Issue
Block a user