|
|
|
@ -31,7 +31,7 @@ class UserController extends BaseController
|
|
|
|
|
|
|
|
|
|
$ip = get_client_ip();
|
|
|
|
|
$device_bans_ip = M('device_bans','tab_')->where(['tag' => $ip,'type' => 2])->find();
|
|
|
|
|
$device_bans_num = M('device_bans','tab_')->where(['tag' => $user['device_number'],'type' => 1])->find();
|
|
|
|
|
$device_bans_num = M('device_bans','tab_')->where(['tag' => $user['unique_code'],'type' => 1])->find();
|
|
|
|
|
if(!empty($device_bans_ip) || !empty($device_bans_num)){
|
|
|
|
|
$this->set_message(1004, "fail", "设备已被禁用");
|
|
|
|
|
}
|
|
|
|
|