提交 db41752f authored 作者: wangkr's avatar wangkr

update

上级 71af8d76
......@@ -116,26 +116,31 @@ public class TaskServiceImpl implements TaskService {
String regionStr = workflowTaskDateMes.getRegionStr();
String jsonStrV = workflowTaskDateMes.getJsonStr();
//regionStr validate
if (StringUtils.isNotEmpty(regionStr)) {
log.error(regionStr+"++++++++++++++++++++++");
if (StringUtils.isNotBlank(regionStr.toString())&&!"".equals(regionStr.toString())&&regionStr.toString()!= "\"\""&&regionStr.toString()!= "\" \""&&regionStr.toString()!="") {
try {
log.error(regionStr+"===================="+regionStr.length());
JSONObject.parseObject(regionStr);
} catch (Exception e) {
try {
log.error(regionStr+"-----------------");
JSONArray.parseArray(regionStr);
} catch (Exception e1) {
log.error("解析报错啦++++++++++++++++++++++"+regionStr);
return new CyPersistModel(0);
}
}
}
//jsonStr validate
if (StringUtils.isNotEmpty(jsonStrV)) {
if (StringUtils.isNotBlank(jsonStrV.toString())&&!"".equals(jsonStrV.toString())&&jsonStrV.toString()!="\"\""&&jsonStrV.toString()!="\" \""&&jsonStrV.toString()!="") {
try {
JSONObject.parseObject(jsonStrV);
} catch (Exception e) {
try {
JSONArray.parseArray(jsonStrV);
} catch (Exception e1) {
log.error("解析报错啦++++++++++++++++++++++222222222");
return new CyPersistModel(0);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论