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)); }