双乾支付bug修正

master
zhengyongxing 5 years ago
parent 8866c33f57
commit 93f5d69b37

@ -441,7 +441,7 @@ class ShortcutController extends BaseController{
// $this->display();
$this->yee_step1();
$this->sq_pay_step1();
}
@ -609,7 +609,7 @@ class ShortcutController extends BaseController{
return ;
}
public function yee_step1() {
public function sq_pay_step1() {
$is_platform = 0;
if (I('request.code') == 0 && I('request.type') == 'platform') {
$is_platform = 1; // 平台币充值
@ -623,14 +623,16 @@ class ShortcutController extends BaseController{
$user_id = $request['user_id'];
$request['code'] = I('request.code');
$extend = I('request.extend');
if (!$user_id) {
echo json_encode(['code'=>0,'msg'=>'用户id为空请退出支付界面重新进入']);exit;
}
$payInfo = M('pay_info', 'tab_')->where([
'user_id' => I('user_id'),
'game_id' => I('game_id'),
'extend' => I('extend'),
'user_id' => $user_id,
'game_id' => $game_id,
'extend' => $extend,
])->order('id desc')->find();
$request['price'] = $payInfo['price'];
@ -700,7 +702,7 @@ class ShortcutController extends BaseController{
$request['spend_ip'] = get_client_ip();
$payInfo['info'] = json_decode($payInfo['info'],true);
$request['goods_info'] = $payInfo['info']['game_name'].$payInfo['info']['body'];
$request['goods_info'] = $payInfo['info']['game_name'].$payInfo['info']['title'];
$payInfo = M('pay_info', 'tab_')->where([
'user_id' => I('user_id'),
@ -735,7 +737,7 @@ class ShortcutController extends BaseController{
$request['spend_ip'] = get_client_ip();
$request['pay_order_number'] = $payInfo['order_id'];
$payInfo['info'] = json_decode($payInfo['info'],true);
$request['goods_info'] = $payInfo['info']['game_name'].$payInfo['info']['body'];
$request['goods_info'] = $payInfo['info']['game_name'].$payInfo['info']['title'];
}
}
@ -771,7 +773,7 @@ class ShortcutController extends BaseController{
}
public function yee_step2() {
public function sq_pay_step2() {
$is_platform = 0;
if (I('request.code') == 0 && I('request.type') == 'platform') {
$is_platform = 1; // 平台币充值
@ -916,7 +918,7 @@ class ShortcutController extends BaseController{
$this->assign('bank_info',$bank_info);
$this->assign('cardNo',I('card_no'));
$this->display();
$this->display('yee_step2');
}

@ -17,7 +17,7 @@
<!-- 银行卡快捷支付-->
<!-- </div>-->
<!-- </div>-->
<form class="wfform" name="wfform" method="post" action="{:U('Shortcut/yee_step2')}" target="_parent" >
<form class="wfform" name="wfform" method="post" action="{:U('Shortcut/sq_pay_step2')}" target="_parent" >
<div class="containner">
<div class="containner_box">
<input type="hidden" name="user_id" id="user_id" value="{$user_id}" />
@ -53,7 +53,7 @@
</div>
</div>
</div>
<div class="foot_btn step2 submit" data-url="{:U('Shortcut/yee_step1',array('user_id'=>I('user_id'),'game_id'=>I('game_id'),'code'=>1,'extend'=>I('extend'),'api_ver'=>2,'step'=>2))}">下一步</div>
<div class="foot_btn step2 submit" data-url="{:U('Shortcut/sq_pay_step2',array('user_id'=>I('user_id'),'game_id'=>I('game_id'),'code'=>1,'extend'=>I('extend'),'api_ver'=>2,'step'=>2))}">下一步</div>
</form>
<!-- 错误弹窗 -->
<div class="forbid_model" style="display:none;"></div>
@ -76,7 +76,7 @@
<!-- 银行卡快捷支付-->
<!-- </div>-->
<!-- </div>-->
<form class="wfform_heng" name="wfform_heng" method="post" action="{:U('Shortcut/yee_step2')}" target="_parent" >
<form class="wfform_heng" name="wfform_heng" method="post" action="{:U('Shortcut/sq_pay_step2')}" target="_parent" >
<div class="containner">
<div class="containner_box">
<input type="hidden" name="user_id" id="user_id" value="{$user_id}" />
@ -112,7 +112,7 @@
</div>
</div>
</div>
<div class="foot_btn step2_wfform_heng" data-url="{:U('Shortcut/yee_step2', array('user_id'=>I('user_id'),'game_id'=>I('game_id'),'user_token'=>I('user_token'),'code'=>1,'extend'=>I('extend'),'api_ver'=>2))}">下一步</div>
<div class="foot_btn step2_wfform_heng" data-url="{:U('Shortcut/sq_pay_step2', array('user_id'=>I('user_id'),'game_id'=>I('game_id'),'user_token'=>I('user_token'),'code'=>1,'extend'=>I('extend'),'api_ver'=>2))}">下一步</div>
</form>
<!-- 错误弹窗 -->
<div class="forbid_model" style="display:none;"></div>

Loading…
Cancel
Save