支付宝条码付修复

This commit is contained in:
egzosn@gmail.com
2017-05-11 10:57:17 +08:00
parent 7c5c89521e
commit 5d2c5a42e2

View File

@@ -381,7 +381,7 @@ public class AliPayService extends BasePayService {
JSONObject result = getHttpRequestTemplate().postForObject(getReqUrl() + "?" + UriVariables.getMapToParameters(orderInfo), null, JSONObject.class);
JSONObject response = result.getJSONObject("alipay_trade_pay_response");
if ("10000".equals(response.getString("code"))){
return response;
return result;
}
throw new PayErrorException(new PayException(response.getString("code"), response.getString("msg"), result.toJSONString()));
}