|
@@ -13,16 +13,11 @@ public class WxCertUtil {
|
|
|
public static final String APP_ID = "wxbde6b16acad84204";
|
|
|
public static final String MERCHANT_ID = "1574204121";
|
|
|
public static final String MERCHANT_KEY = "lilaiwflzIOLJI2320JLZL2Llisd02ak";
|
|
|
- public static final String CERT_PATH = "D:\\a.snapshot\\zwxcert\\apiclient_cert.p12";
|
|
|
- public static final String CERT_PATH2 = "/home/zwxcert/apiclient_cert.p12";
|
|
|
+ public static final String CERT_PATH = "/home/zwxcert/apiclient_cert.p12";
|
|
|
public static byte[] CERTDATA;
|
|
|
static {
|
|
|
try {
|
|
|
File file = new File(CERT_PATH);
|
|
|
- if (!file.exists()) {
|
|
|
- file = new File(CERT_PATH2);
|
|
|
- }
|
|
|
-// InputStream certStream = new FileInputStream(file);
|
|
|
InputStream certStream = Files.newInputStream(file.toPath());
|
|
|
CERTDATA = new byte[(int) file.length()];
|
|
|
//noinspection ResultOfMethodCallIgnored
|