|
|
@ -1251,6 +1251,8 @@ class MemberController extends ThinkController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($type == 2 && !preg_match("/(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/i", $tag)) {
|
|
|
|
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");
|
|
|
|
return $this->error("请填写正确的ip信息,如127.0.0.1");
|
|
|
|
|
|
|
|
} else if ($type == 1 && preg_match("/(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/i", $tag)) {
|
|
|
|
|
|
|
|
return $this->error("请填写正确的设备号信息");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$map['type'] = $type;
|
|
|
|
$map['type'] = $type;
|
|
|
|
$map['tag'] = $tag;
|
|
|
|
$map['tag'] = $tag;
|
|
|
|