diff --git a/src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java b/src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java index dfd92a9..43e1859 100644 --- a/src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java +++ b/src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java @@ -202,9 +202,9 @@ public class CustomerFormServiceImpl implements CustomerFormService { ArrayList masterTreeList = new ArrayList<>(); String userKey = key; - - //String url = "http://172.20.2.87:7777/customer_form/gainTableField"; - String url = "http://36.133.126.182:39250/customer_form/gainTableField"; + //上线修改 + String url = "http://172.20.2.87:7777/customer_form/gainTableField"; + //String url = "http://36.133.126.182:39250/customer_form/gainTableField"; JSONObject param = new JSONObject(); param.put("id", cfid); String post = null; @@ -221,8 +221,8 @@ public class CustomerFormServiceImpl implements CustomerFormService { try { JsonNode jsonNode = objectMapper.readTree(post); - JsonNode msg = jsonNode.get("msg"); - if(msg.toString().contains("成功")){ + JsonNode code = jsonNode.get("code"); + if(code.toString().equals("0")){ JsonNode data = jsonNode.get("data"); tree.setId(cfid); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 46a943a..7b45093 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,6 @@ spring: profiles: - active: prod + active: dev server: - #port: 8112 - port: 39999 \ No newline at end of file + port: 8112 + #port: 39999 \ No newline at end of file