...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
use Action\AbstractAction;
|
|
|
use Plugin\Helpers;
|
|
|
use LibModels\Wap\Home\OrderData;
|
|
|
use LibModels\Wap\Home\CartData;
|
|
|
use Plugin\Pay\weixin\JsApiPay;
|
|
|
use Plugin\Pay\weixin\lib\WxPayUnifiedOrder;
|
|
|
use Plugin\Pay\weixin\lib\WxPayApi;
|
...
|
...
|
@@ -131,5 +132,33 @@ class PayController extends AbstractAction |
|
|
} while (false);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 选择支付时,时间间隔校验插入
|
|
|
*/
|
|
|
public function addPaymentIntervalAction()
|
|
|
{
|
|
|
$data = array('code'=>400,'message'=>'','data'=>'');
|
|
|
|
|
|
do {
|
|
|
if (!$this->isAjax()) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
$uid = $this->getUid(TRUE);
|
|
|
$orderCode = $this->get('orderCode','');
|
|
|
$payment = $this->get('payment',0);
|
|
|
|
|
|
if (!$uid || !$orderCode || !$payment) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
$res = CartData::savePrePayInfo($uid, $orderCode, $payment);
|
|
|
$data = array('code'=>$res['code'],'message'=>$res['message'],'data'=>$res['data']);
|
|
|
|
|
|
} while (false);
|
|
|
|
|
|
$this->echoJson($data);
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|