|
|
|
@ -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');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|