【泛微推送采购订单接口】泛微地址改成配置ip
This commit is contained in:
parent
e03afb3106
commit
393981702e
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue