Commit 05b6d6e0 by guojuxing

数据校验修复

parent 7ac58514
...@@ -11,7 +11,7 @@ import com.gic.api.base.commons.ServiceResponse; ...@@ -11,7 +11,7 @@ import com.gic.api.base.commons.ServiceResponse;
public class ValidSplitUtils { public class ValidSplitUtils {
public static ServiceResponse<String[]> validStr(String param) { public static ServiceResponse<String[]> validStr(String param) {
if (isNumericZidai(param.replaceAll(",", ""))) { if (!isNumericZidai(param.replaceAll(",", ""))) {
return ServiceResponse.failure("0005", "数据格式有误,不是英文逗号隔开的数据"); return ServiceResponse.failure("0005", "数据格式有误,不是英文逗号隔开的数据");
} }
String[] strArr = param.split(","); String[] strArr = param.split(",");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment