1.优化判断是否为测试环境的代码

S
This commit is contained in:
weiyunlong 2025-04-24 16:21:36 +08:00
parent 2c4b5a2a1b
commit b9def6b44d
2 changed files with 8 additions and 3 deletions

View File

@ -106,7 +106,12 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn {
customerBody.put("createTime", createtime);// "创建时间例如2024-06-02 17:27:10", customerBody.put("createTime", createtime);// "创建时间例如2024-06-02 17:27:10",
customerBody.put("updateTime", updatetime);//"更新时间例如2024-06-02 17:27:10", customerBody.put("updateTime", updatetime);//"更新时间例如2024-06-02 17:27:10",
customerBody.put("def1", "采购供应商");//"客商类别:默认租赁客户", customerBody.put("def1", "采购供应商");//"客商类别:默认租赁客户",
// customerBody.put("RESSYS", "ISC");//todo"最后更新来源系统默认ISC", String property = System.getProperty("domain.contextUrl");
//测试环境
if (property != null && property.contains("test")) {
customerBody.put("RESSYS", "ISC");//todo"最后更新来源系统默认ISC",
}
JSONArray custBankaccMapBody = new JSONArray(); JSONArray custBankaccMapBody = new JSONArray();
//银行信息 //银行信息

View File

@ -89,7 +89,7 @@ public class todoZyTaskServiceHandler extends AbstractMessageServiceHandler {
//https://newoa.dobechina.com //https://newoa.dobechina.com
String property = System.getProperty("domain.contextUrl"); String property = System.getProperty("domain.contextUrl");
//测试环境 //测试环境
if ("http://isctest.dobechina.com:8022/ierp".equals(property)) { if (property != null && property.contains("test")) {
url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + url; url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + url;
h5url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + h5url; h5url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + h5url;
}else { }else {
@ -333,7 +333,7 @@ public class todoZyTaskServiceHandler extends AbstractMessageServiceHandler {
//https://newoa.dobechina.com //https://newoa.dobechina.com
String property = System.getProperty("domain.contextUrl"); String property = System.getProperty("domain.contextUrl");
//测试环境 //测试环境
if ("http://isctest.dobechina.com:8022/ierp".equals(property)) { if (property != null && property.contains("test")) {
url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + url; url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + url;
h5url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + h5url; h5url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + h5url;
}else { }else {