Browse Source

codemsg判断

lwx_v1
liwenxuan 2 years ago
parent
commit
4a6d40da96
  1. 10
      src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java
  2. 6
      src/main/resources/application.yml

10
src/main/java/com/hxgk/lowcode/service/impl/CustomerFormServiceImpl.java

@ -202,9 +202,9 @@ public class CustomerFormServiceImpl implements CustomerFormService {
ArrayList<Tree> 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);

6
src/main/resources/application.yml

@ -1,6 +1,6 @@
spring:
profiles:
active: prod
active: dev
server:
#port: 8112
port: 39999
port: 8112
#port: 39999
Loading…
Cancel
Save