mirror of https://gitee.com/makejava/EasyCode.git
修复无法导入模板问题
This commit is contained in:
parent
b1501d64f9
commit
e6863b12f4
|
@ -126,7 +126,7 @@ public final class HttpUtils {
|
|||
// 解析JSON数据
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
JsonNode jsonNode = objectMapper.readTree(body);
|
||||
if (jsonNode.get(STATE_CODE).asInt() == 1) {
|
||||
if (jsonNode.get(STATE_CODE).asInt() == 0) {
|
||||
JsonNode data = jsonNode.get("data");
|
||||
if (data instanceof TextNode) {
|
||||
return data.asText();
|
||||
|
|
|
@ -278,10 +278,10 @@ public class MainSetting implements Configurable, Configurable.Composite {
|
|||
T group = objectMapper.readValue(value, cls);
|
||||
if (srcGroup.containsKey(key)) {
|
||||
if (!MessageDialogBuilder.yesNo(MsgValue.TITLE_INFO, String.format("是否覆盖%s配置中的%s分组?", name, key)).isYes()) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
srcGroup.put(key, group);
|
||||
}
|
||||
srcGroup.put(key, group);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
Messages.showWarningDialog("JSON解析错误!", MsgValue.TITLE_INFO);
|
||||
|
|
Loading…
Reference in New Issue