igl 2 месяцев назад
Родитель
Сommit
f75fafb625

+ 5 - 2
vehicle-client/src/main/java/com/chelvc/cloud/vehicle/client/util/SFTPConfigModel.java

@@ -1,5 +1,7 @@
 package com.chelvc.cloud.vehicle.client.util;
 
+import com.chelvc.cloud.vehicle.client.constant.TradeConstant;
+
 public class SFTPConfigModel {
     /** FTP 登录用户名*/
     private String userName;
@@ -132,12 +134,13 @@ public class SFTPConfigModel {
      * @return
      */
     public SFTPConfigModel getDefaultConfig(){
-        this.userName = "893951545";
+        this.userName = TradeConstant.PARTNER_ID;
         this.passWord = null;
         this.host = "merchant-sftp.5upay.com";
         this.port = 2822;
         this.uploadUrl = "/serviceprovider/register/";
-        this.privateKey = "C:\\893951545.rsa";
+        this.privateKey = "/home/chelvc/cfca/893951545.rsa";
+        //this.privateKey = "C:\\893951545.rsa";
         return this;
     }
 

+ 2 - 2
vehicle-server/src/main/java/com/chelvc/cloud/vehicle/server/handle/CustomConfig.java

@@ -17,8 +17,8 @@ public class CustomConfig {
         Map<String, Object> map = new HashMap<>();
         map.put("http.content.type.v3", "application/vnd.5upay-v3.0+json");
         map.put("http.content.type.v4", "application/vnd.5upay-v4.0+json");
-        map.put("893951545.client.private.key.path", "F:/workspace/after/car/vehicle/vehicle-server/src/main/webapp/cfca/client.pfx");
-        //map.put("893951545.client.private.key.path", "/home/chelvc/cfca/client.pfx");
+        //map.put("893951545.client.private.key.path", "F:/workspace/after/car/vehicle/vehicle-server/src/main/webapp/cfca/client.pfx");
+        map.put("893951545.client.private.key.path", "/home/chelvc/cfca/client.pfx");
         map.put("893951545.client.private.key.password", "123456");
         map.put("onlinepay.order.url", "https://apis.5upay.com/onlinePay/order");
         map.put("onlinepay.refund.url", "https://apis.5upay.com/onlinePay/refund");