|
|
|
@ -1169,6 +1169,7 @@ class UserController extends BaseController
|
|
|
|
|
$res = $data = $user_play -> where($map) -> find();
|
|
|
|
|
$user = M('user', 'tab_');
|
|
|
|
|
$user_data = $user -> find($user_id);
|
|
|
|
|
|
|
|
|
|
$data['promote_id'] = $request['promote_id'];
|
|
|
|
|
$data['promote_account'] = get_promote_account($request['promote_id']);
|
|
|
|
|
$data['game_id'] = $request['game_id'];
|
|
|
|
@ -1176,7 +1177,7 @@ class UserController extends BaseController
|
|
|
|
|
$data['server_id'] = $request['server_id'];
|
|
|
|
|
$data['server_name'] = $request['server_name'];
|
|
|
|
|
$data['role_name'] = $request['game_player_name'];
|
|
|
|
|
// $data['role_name'] = $request['role_name'];
|
|
|
|
|
$data['role_id'] = $request['game_player_id'];
|
|
|
|
|
$data['role_level'] = $request['role_level'];
|
|
|
|
|
$data['user_id'] = $user_id;
|
|
|
|
|
$data['user_account'] = $user_data['account'];
|
|
|
|
@ -1770,6 +1771,24 @@ class UserController extends BaseController
|
|
|
|
|
if (isset($r['union']) && $r['union'] == 1)
|
|
|
|
|
$squnion_pay = 1;
|
|
|
|
|
}
|
|
|
|
|
// 双乾银联快捷支付
|
|
|
|
|
$shortcut_pay = 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['shortcut']) && $r['shortcut'] == 1)
|
|
|
|
|
$shortcut_pay = 1;
|
|
|
|
|
}
|
|
|
|
|
$user_id = $request['user_id'];
|
|
|
|
|
$game_id = $request['game_id'];
|
|
|
|
|
$balance = M ('user', 'tab_')->where (array(
|
|
|
|
|
'id' => $user_id
|
|
|
|
|
))->getField('balance');
|
|
|
|
|
$bind_balance = M('user_play', 'tab_')->where(array(
|
|
|
|
|
'user_id' => $user_id,
|
|
|
|
|
'game_id' => $game_id
|
|
|
|
|
))->getField('bind_balance');
|
|
|
|
|
|
|
|
|
|
// pp($squnion_pay);
|
|
|
|
|
//0:APP 1:WAP
|
|
|
|
|
$zfb_type = pay_set_status('alipay') == 1 ? (empty(C('alipay.way')) ? 0 : C('alipay.way')) : 1;
|
|
|
|
@ -1782,7 +1801,11 @@ class UserController extends BaseController
|
|
|
|
|
'zfb_type' => $zfb_type,
|
|
|
|
|
'ptb_game' => $ptb_game,
|
|
|
|
|
'bind_game' => $bind_game,
|
|
|
|
|
'squnion_pay' => $squnion_pay,
|
|
|
|
|
'squnion_pay' => $squnion_pay, // 银联0关 1开
|
|
|
|
|
'platform_coin' => $balance,
|
|
|
|
|
'bind_coin' => $bind_balance,
|
|
|
|
|
'wx_type' => 0, // 0微信 1 微信小程序 双乾
|
|
|
|
|
'shortcut_pay' => 0, // 快捷支付 0关 1开
|
|
|
|
|
)));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|