|
|
|
@ -62,6 +62,13 @@ class MemberController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['user_id'])) {
|
|
|
|
|
empty($hav) || $hav .= ' AND ';
|
|
|
|
|
$hav .= "tab_user.id = {$_REQUEST['user_id']}";
|
|
|
|
|
$maps['tab_user.id'] = $_REQUEST['user_id'];
|
|
|
|
|
unset($_REQUEST['user_id']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['account'])) {
|
|
|
|
|
empty($hav) || $hav .= ' AND ';
|
|
|
|
|
$hav .= "tab_user.account like '%" . I('account') . "%'";
|
|
|
|
@ -1148,6 +1155,9 @@ class MemberController extends ThinkController
|
|
|
|
|
if (empty($type) || empty($tag)) {
|
|
|
|
|
return $this->error("请填写完整信息");
|
|
|
|
|
}
|
|
|
|
|
if ($type == 2 && !preg_match("/(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/i", $tag)) {
|
|
|
|
|
return $this->error("请填写正确的ip信息,如127.0.0.1");
|
|
|
|
|
}
|
|
|
|
|
$map['type'] = $type;
|
|
|
|
|
$map['tag'] = $tag;
|
|
|
|
|
$item = M('device_bans', 'tab_')->where($map)->find();
|
|
|
|
|