登录
This commit is contained in:
@@ -364,21 +364,21 @@ class Login extends Model
|
|||||||
$openid = $userinfo['openid'];
|
$openid = $userinfo['openid'];
|
||||||
$user_info_data = model('UserData')->where(['wx_openid' => $openid,'deletetime'=>0])->find();
|
$user_info_data = model('UserData')->where(['wx_openid' => $openid,'deletetime'=>0])->find();
|
||||||
$config_time = get_system_config_value('cancel_to_reset_reg');
|
$config_time = get_system_config_value('cancel_to_reset_reg');
|
||||||
if($user_info_data['deletetime'] != 0 && time() - $user_info_data['deletetime'] < 86400 * $config_time){
|
if(isset($user_info_data) && $user_info_data['deletetime'] != 0 && time() - $user_info_data['deletetime'] < 86400 * $config_time){
|
||||||
return ['code' => 0, 'msg' => '注销后需等待'.$config_time.'天才能重新注册', 'data' => null];
|
return ['code' => 0, 'msg' => '注销后需等待'.$config_time.'天才能重新注册', 'data' => null];
|
||||||
}
|
}
|
||||||
}elseif ($type == 'ali'){
|
}elseif ($type == 'ali'){
|
||||||
$ali_userid = $userinfo['open_id'];
|
$ali_userid = $userinfo['open_id'];
|
||||||
$user_info_data = model('UserData')->where(['ali_userid' => $ali_userid,'deletetime'=>0])->find();
|
$user_info_data = model('UserData')->where(['ali_userid' => $ali_userid,'deletetime'=>0])->find();
|
||||||
$config_time = get_system_config_value('cancel_to_reset_reg');
|
$config_time = get_system_config_value('cancel_to_reset_reg');
|
||||||
if($user_info_data['deletetime'] != 0 && time() - $user_info_data['deletetime'] < 86400 * $config_time){
|
if(isset($user_info_data) && $user_info_data['deletetime'] != 0 && time() - $user_info_data['deletetime'] < 86400 * $config_time){
|
||||||
return ['code' => 0, 'msg' => '注销后需等待'.$config_time.'天才能重新注册', 'data' => null];
|
return ['code' => 0, 'msg' => '注销后需等待'.$config_time.'天才能重新注册', 'data' => null];
|
||||||
}
|
}
|
||||||
}elseif ($type == 'ios'){
|
}elseif ($type == 'ios'){
|
||||||
$apple_id = $userinfo;
|
$apple_id = $userinfo;
|
||||||
$user_info_data = model('UserData')->where(['apple_id' => $userinfo,'deletetime'=>0])->find();
|
$user_info_data = model('UserData')->where(['apple_id' => $userinfo,'deletetime'=>0])->find();
|
||||||
$config_time = get_system_config_value('cancel_to_reset_reg');
|
$config_time = get_system_config_value('cancel_to_reset_reg');
|
||||||
if($user_info_data['deletetime'] != 0 && time() - $user_info_data['deletetime'] < 86400 * $config_time){
|
if(isset($user_info_data) && $user_info_data['deletetime'] != 0 && time() - $user_info_data['deletetime'] < 86400 * $config_time){
|
||||||
return ['code' => 0, 'msg' => '注销后需等待'.$config_time.'天才能重新注册', 'data' => null];
|
return ['code' => 0, 'msg' => '注销后需等待'.$config_time.'天才能重新注册', 'data' => null];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user