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

update

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