Authored by 徐祁xuqi

pay interval bug fix

... ... @@ -172,7 +172,7 @@ loading.showLoadingMask();
$(document).ready(main);
$('.box').on('click', function () {
var url = $('.payapp-list a').attr('href'),
var url = $('.payapp-list a').data('href'),
theRequest = [],
orderCode,
payment;
... ... @@ -186,6 +186,8 @@ $('.box').on('click', function () {
$.ajax({
url: '/shopping/pay/addPaymentInterval?orderCode=' + orderCode + '&payment=' + payment,
method: 'get'
}).then(function() {
location.href = url;
});
});
... ...
... ... @@ -6,7 +6,7 @@
<div class="payapp-list">
{{# payAppInfo}}
{{#if payLink}}
<a href="{{payLink}}">
<a href="javascript:;" data-href="{{payLink}}">
{{/if}}
<div class="box" id="{{appId}}">
<div class="icon">
... ...
... ... @@ -162,9 +162,8 @@ class PayController extends AbstractAction
UdpLog::info('【支付时间校验】参数校验', 'orderCode:'.$orderCode.'uid:'.$uid.'payment:'.$payment);
break;
}
UdpLog::info('【支付校验】支付间隔入参校验', 'uid:'.$uid.'orderCode:'.$orderCode.'payment:'.$payment);
$res = CartData::savePrePayInfo($uid, $orderCode, $payment);
UdpLog::info('【支付校验】支付间隔出参校验', 'code:'.$res['code'].'message:'.$res['message'].'data:'.$res['data']);
$data = array('code'=>$res['code'],'message'=>$res['message'],'data'=>$res['data']);
} while (false);
... ...