|
@@ -28,7 +28,7 @@ public class YqPayUtil {
|
|
|
rqMap.put("apiContent", JSON.toJSONString(resultMap));
|
|
|
rqMap.put("signType", signType);
|
|
|
String beforeSignedData = CFCARAUtil.joinMapValue(rqMap, '&');
|
|
|
- this.sign = CFCARAUtil.signMessageByP1(beforeSignedData, "classpath:certificate/yqpay.pfx", "aaa123123");
|
|
|
+ this.sign = CFCARAUtil.signMessageByP1(beforeSignedData, "certificate/yqpay.pfx", "aaa123123");
|
|
|
rqMap.put("sign", this.sign);
|
|
|
this.requestMap = rqMap;
|
|
|
}
|
|
@@ -43,7 +43,7 @@ public class YqPayUtil {
|
|
|
rsMap.remove("sign");
|
|
|
String beforeSignedData = CFCARAUtil.joinMapValue(rsMap, '&');
|
|
|
try {
|
|
|
- return CFCARAUtil.verifyMessageByP1(beforeSignedData, sign, "classpath:certificate/yqpay.cer");
|
|
|
+ return CFCARAUtil.verifyMessageByP1(beforeSignedData, sign, "certificate/yqpay.cer");
|
|
|
} catch (Exception e) {
|
|
|
return false;
|
|
|
}
|