平台币快捷支付

master
tpingzhang 5 years ago
parent 3d8b768881
commit 8c9a98a493

@ -310,11 +310,12 @@ class WapPayController extends BaseController{
$payInfo = M('pay_info', 'tab_')->where(array(
'user_id' => $param['user_id'],
'game_id' => $param['game_id']
'game_id' => $param['game_id'],
'extend' => $param['extend']
))->order('id desc')->find();
$info = json_decode($payInfo['info'], true);
// $info = json_decode($payInfo['info'], true);
$deposit = M('deposit', 'tab_')->where([
'pay_order_number' => $info['pay_order_number']
'pay_order_number' => $payInfo['order_id']
])->find();
if ($deposit['pay_amount'] != $payInfo['price']) {
$this->error($deposit['pay_amount']."数据有误.".$payInfo['price'], '', true);
@ -685,6 +686,7 @@ class WapPayController extends BaseController{
$this->assign("pay_amount", $request['actual_amount']?$request['actual_amount']:$request['price']);
$this->assign("user_id", $request['user_id']);
$this->assign("game_id", $request['game_id']);
$this->assign("extend", $is_platform ? $request['pay_order_number'] : I('extend'));
$this->display();
}

@ -258,6 +258,7 @@
<input type="hidden" id="wfddll" name="wfddll" value="wfddll" />
<input type="hidden" name="user_id" id="user_id" value="{$user_id}" />
<input type="hidden" name="game_id" id="game_id" value="{$game_id}" />
<input type="hidden" name="extend" id="extend" value="{$extend}" />
<div class="paypage">
<div class="weui-cells weui-cells_form" style="padding: .3rem 0 0;">
@ -357,7 +358,8 @@
'custName' : $("#custName").val(),
'cardNo' : $("#cardNo").val(),
'idNo' : $("#idNo").val(),
'phoneNo' : $("#phoneNo").val()
'phoneNo' : $("#phoneNo").val(),
'extend' : $("#extend").val(),
},
success:function(res){
// 返回列表数组,构造数据流模块

Loading…
Cancel
Save