微信小程序支付显示安卓

save返回
master
tpingzhang 5 years ago
parent 461afa0e9c
commit 28937dd832

@ -1774,6 +1774,15 @@ class UserController extends BaseController
if (isset($r['shortcut']) && $r['shortcut'] == 1)
$shortcut_pay = 1;
}
// 双乾微信小程序支付
$wx_small = 0;
$sqpay = M('tool','tab_')->field('status, config')->where(array('name'=>'sqpay'))->find();
if ($sqpay['status'] == 1) {
$r = json_decode($sqpay['config'], true);
if (isset($r['wx_small']) && $r['wx_small'] == 1)
$wx_small = 1;
}
$user_id = $request['user_id'];
$game_id = $request['game_id'];
$balance = M ('user', 'tab_')->where (array(
@ -1799,8 +1808,8 @@ class UserController extends BaseController
'squnion_pay' => $squnion_pay, // 银联0关 1开
'platform_coin' => $balance,
'bind_coin' => $bind_balance,
'wx_type' => 0, // 0微信 1 微信小程序 双乾
'shortcut_pay' => 0, // 快捷支付 0关 1开
'wx_type' => $wx_small, // 0微信 1 微信小程序 双乾
'shortcut_pay' => $shortcut_pay, // 快捷支付 0关 1开
)));
}
@ -2015,10 +2024,8 @@ class UserController extends BaseController
}
$return = M('User', 'tab_') -> where($map) -> save($data);
if (!$return) {
if ($return === false) {
$this -> set_message(1070, "fail", "用户数据更新失败");
}
$data['status'] = 200;
echo base64_encode(json_encode($data));

Loading…
Cancel
Save