Browse Source

REPORT-16494 模板信息收集, 设计器启动有报错=>调整代码

research/10.0
plough 6 years ago
parent
commit
476d3821d6
  1. 9
      designer-base/src/main/java/com/fr/design/mainframe/template/info/SendHelper.java

9
designer-base/src/main/java/com/fr/design/mainframe/template/info/SendHelper.java

@ -30,13 +30,12 @@ class SendHelper {
}
private static boolean sendSingleTemplateInfo(String url, String content) {
try {
HashMap<String, Object> para = new HashMap<>();
para.put("token", SiteCenterToken.generateToken());
para.put("content", content);
HashMap<String, Object> para = new HashMap<>();
para.put("token", SiteCenterToken.generateToken());
para.put("content", content);
try {
String res = HttpToolbox.post(url, para);
return ComparatorUtils.equals(new JSONObject(res).get("status"), "success");
} catch (Throwable e) {
// 客户不需要关心,错误等级为 debug 就行了

Loading…
Cancel
Save