封ip 设备号

master
tpingzhang 5 years ago
parent 8990b6ad3e
commit 6306a9b3d1

@ -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", "设备已被禁用");
}

Loading…
Cancel
Save