|
@@ -67,7 +67,7 @@ public class WxPayJsApiService {
|
|
|
* 创建订单,调用JSAPI支付接口
|
|
|
*/
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public WechatPayDto jsapiPay(String orderNo, String openid) {
|
|
|
+ public WechatPayDto jsapiPay(String orderNo, String openid) throws Exception{
|
|
|
log.info("获取订单");
|
|
|
|
|
|
// 生成订单
|
|
@@ -75,7 +75,7 @@ public class WxPayJsApiService {
|
|
|
String prepayId = orderInfo.getPrepayId();
|
|
|
if (orderInfo != null && !StringUtils.isEmpty(prepayId)) {
|
|
|
log.info("订单已存在,prepay_id 已保存");
|
|
|
- return getWechatPayDto(prepayId, orderInfo.getPrepayIdFailureTime());
|
|
|
+ return getWechatPayDto(prepayId, orderInfo.getCodeUrlFailureTime());
|
|
|
}
|
|
|
|
|
|
log.info("调用统一下单API");
|
|
@@ -114,7 +114,7 @@ public class WxPayJsApiService {
|
|
|
quartzService.executeWxPayCloseOrderTask(orderInfo1);
|
|
|
|
|
|
//将 WechatPayDto 中的值返回小程序就可以唤起支付页面 也就是输入密码页面
|
|
|
- return getWechatPayDto(prepayId, orderInfo1.getPrepayIdFailureTime());
|
|
|
+ return getWechatPayDto(prepayId, orderInfo1.getCodeUrlFailureTime());
|
|
|
|
|
|
}
|
|
|
|