Authored by LUOXC

fixbug

... ... @@ -53,11 +53,19 @@ public class AlipaySignatureHelper {
public boolean verifyWithRsa(String content, String charset, String sign) {
boolean success = false;
if (setting.isUseMapi()) {
try {
success = alipayMapiHelper.verify(setting.getPartnerId(), content, sign, charset, setting.getRsaType());
} catch (AlipayException e) {
throwSignatureException(e);
}
} else {
try {
success = alipayOpenapiHelper.verify(setting.getAppId(), content, sign, charset, setting.getRsaType());
} catch (AlipayException e) {
throwSignatureException(e);
}
}
return success;
}
... ...