Commit 0894408a authored by jiaorz's avatar jiaorz

新增押金记录,修改租车核销

parent 6251e1ba
......@@ -64,7 +64,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
@Value("${universal.url}")
String weixinHost;
String notifyUrl = weixinHost + "/service/payment/notify/alipay";
public JSONObject preparepay(OrderPayVo orderPayVo) {
if (null == orderPayVo) {
......@@ -280,6 +280,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
AlipayClient alipayClient = new DefaultAlipayClient(SystemConfig.ALIPAY_PAY_BASE_URL + "/gateway.do",
SystemConfig.ALIPAY_APPID, SystemConfig.ALIPAY_PRIVATE_KEY, AlipayConstants.FORMAT_JSON,
"UTF-8", SystemConfig.ALIPAY_PUBLIC_KEY, AlipayConstants.SIGN_TYPE_RSA2);
String notifyUrl = weixinHost + "/service/payment/notify/alipay";
orderPayVo.setNotifyUrl(notifyUrl);
try {
if (orderPayVo.getPayWay() == 2) { //支付宝APP支付
......@@ -361,7 +362,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
//选填字段,信用授权订单,针对信用全免订单,传入该值完结信用订单,形成芝麻履约记录
// model.setExtraParam("{\"unfreezeBizInfo\":\"{\\\"bizComplete\\\":\\\"true\\\"}\"}");
request.setBizModel(model);
request.setNotifyUrl(notifyUrl);//异步通知地址,必填,该接口只通过该参数进行异步通知
request.setNotifyUrl("");//异步通知地址,必填,该接口只通过该参数进行异步通知
AlipayFundAuthOrderUnfreezeResponse response = alipayClient.execute(request);
log.info("response: {}" + response.getBody());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment