anderx 4 years ago
parent
commit
208eb1ade1
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/main/java/com/kede/sdk/service/IWxPayConfig.java

+ 6 - 5
src/main/java/com/kede/sdk/service/IWxPayConfig.java

@@ -7,7 +7,6 @@ import java.io.InputStream;
 import java.util.HashMap;
 import java.util.Map;
 
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 
 import com.kede.sdk.IWXPayDomain;
@@ -26,20 +25,20 @@ public class IWxPayConfig extends WXPayConfig {
     private String wx_pay_key;
 
     private String wx_pay_mch_id;
+    
+    
 
     public IWxPayConfig(String appid,String mchid,String apiKey) throws Exception {
     	this.app_id=appid;
     	this.wx_pay_mch_id=mchid;
     	this.wx_pay_key=apiKey;
-//    	String s=getSandboxSignKey();
     	new IWxPayConfig();
     }
 
 	public IWxPayConfig() throws Exception { 
    	// 构造方法读取证书, 通过getCertStream 可以使sdk获取到证书
-//       String certPath = "F:/project/ztest/src/main/resources/apiclient_cert.p12";
-		String certPath = "/data/apiclient_cert.p12";
-       File file = new File(certPath);
+//       File file = new File("F:/project/ztest/src/main/resources/apiclient_cert.p12");
+       File file = new File("/data/apiclient_cert.p12");
        InputStream certStream = new FileInputStream(file);
        this.certData = new byte[(int) file.length()];
        certStream.read(this.certData);
@@ -104,4 +103,6 @@ public class IWxPayConfig extends WXPayConfig {
         }
     }
 
+
+
 }