From 393981702e67b0e48fa53377ac7d6408524dac0f Mon Sep 17 00:00:00 2001 From: "tanfengling@x-ri.com" <123456> Date: Sat, 18 Oct 2025 13:50:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B3=9B=E5=BE=AE=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E6=8E=A5=E5=8F=A3=E3=80=91?= =?UTF-8?q?=E6=B3=9B=E5=BE=AE=E5=9C=B0=E5=9D=80=E6=94=B9=E6=88=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AEip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lc123/cloud/app/plugin/utils/FWRestfulUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lc123/cloud/app/plugin/utils/FWRestfulUtils.java b/lc123/cloud/app/plugin/utils/FWRestfulUtils.java index 39ac7a8..525e0db 100644 --- a/lc123/cloud/app/plugin/utils/FWRestfulUtils.java +++ b/lc123/cloud/app/plugin/utils/FWRestfulUtils.java @@ -46,8 +46,8 @@ public class FWRestfulUtils { String publicKey = rsa.getPublicKeyBase64(); String privateKey = rsa.getPrivateKeyBase64(); - //调用ECOLOGY系统接口进行注册 - String data = HttpRequest.post( "http://180.166.208.42:8043/" + "api/ec/dev/auth/regist") + //调用ECOLOGY系统接口进行注册 http://180.166.208.42:8043/ + String data = HttpRequest.post( FW_Main_URL + "api/ec/dev/auth/regist") .header("appid",FW_appid) .header("cpk",publicKey) .timeout(2000) @@ -70,7 +70,7 @@ public class FWRestfulUtils { //对秘钥进行加密传输,防止篡改数据 String encryptSecret = rsa.encryptBase64(secret,CharsetUtil.CHARSET_UTF_8,KeyType.PublicKey); //调用ECOLOGY系统接口进行注册 - String data = HttpRequest.post("http://180.166.208.42:8043/" + "api/ec/dev/auth/applytoken") + String data = HttpRequest.post(FW_Main_URL + "api/ec/dev/auth/applytoken") .header("appid",FW_appid) .header("secret",encryptSecret) .header("time","3600") @@ -192,12 +192,12 @@ public class FWRestfulUtils { list.add(new BasicNameValuePair("detailData", JSON.toJSONString(detailData))); //restful接口url - String url = "http://180.166.208.42:8043/"; + String url = null; if(StringUtils.isNotBlank(requestId)){ - url = url + "api/workflow/paService/submitRequest"; + url = FW_Main_URL + "api/workflow/paService/submitRequest"; list.add(new BasicNameValuePair("requestId", requestId)); }else{ - url = url + "api/workflow/paService/doCreateRequest"; + url = FW_Main_URL + "api/workflow/paService/doCreateRequest"; list.add(new BasicNameValuePair("requestName", requestName)); list.add(new BasicNameValuePair("workflowId", workflowid)); }