正常json文件无法打开的处理
This commit is contained in:
parent
63b1b82e36
commit
449b5cc2ec
Binary file not shown.
@ -22,6 +22,7 @@ import com.actionsoft.apps.coe.pal.pal.repository.designer.model.BaseModel;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.designer.path.PLRFilePath;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.model.impl.PALRepositoryModelImpl;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.mozilla.javascript.Context;
|
||||
@ -296,9 +297,17 @@ public class CoeDesignerUtil {
|
||||
* @return
|
||||
*/
|
||||
public static String getUpdateTime(String jsonObj) {
|
||||
JSONObject json = JSONObject.parseObject(jsonObj);
|
||||
if (json.containsKey("updateTime")) {
|
||||
return json.getString("updateTime");
|
||||
try {
|
||||
JSONObject json = JSONObject.parseObject(jsonObj);
|
||||
if (json.containsKey("updateTime")) {
|
||||
return json.getString("updateTime");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.out.println("-----------错误信息输出(getUpdateTime)Start-----------");
|
||||
// 数据源
|
||||
SDK.getLogAPI().consoleErr("jsonObj:" + jsonObj);
|
||||
System.out.println("-----------错误信息输出(getUpdateTime)End-----------");
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user