mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-02 14:00:51 +08:00
友店过滤异常
This commit is contained in:
@@ -178,10 +178,17 @@ public class WxYouDianPayService extends BasePayService {
|
||||
data.put("order_sn", id);
|
||||
String sign = createSign(SignUtils.parameterText(data, "") + apbNonce, payConfigStorage.getInputCharset());
|
||||
String queryParam = SignUtils.parameterText(data) + "&apb_nonce=" + apbNonce + "&sign=" + sign;
|
||||
try {
|
||||
JSONObject jsonObject = execute(getHttpsVerifyUrl() + "?" + queryParam, MethodType.GET, null);
|
||||
|
||||
JSONObject jsonObject = execute(getHttpsVerifyUrl() + "?" + queryParam, MethodType.GET, null);
|
||||
return 0 == jsonObject.getIntValue("errorcode");
|
||||
}catch (PayErrorException e){
|
||||
if (Integer.parseInt(e.getPayError().getErrorCode()) >= 400){
|
||||
throw e;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
return 0 == jsonObject.getIntValue("errorcode");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user