xiatian 11 月之前
父节点
当前提交
6da28f68a0

+ 3 - 1
examcloud-core-examwork-base/src/main/java/cn/com/qmth/examcloud/core/examwork/base/util/IpUtil.java

@@ -22,7 +22,7 @@ public class IpUtil {
 		}
 		String s = ss1[3];
 		if (s.indexOf("-") != -1) {
-			String[] ss2 = ip.split("-");
+			String[] ss2 = s.split("-");
 			if (ss2.length != 2) {
 				throw new StatusException("ip段格式错误");
 			}
@@ -52,4 +52,6 @@ public class IpUtil {
 			throw new StatusException("ip只能是整数");
 		}
 	}
+	
+	
 }