master
yulingwei 5 years ago
parent 2e97dff779
commit b1902e5592

@ -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;

Loading…
Cancel
Save