|
|
|
@ -3150,13 +3150,12 @@ class UserController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
$data = json_decode(base64_decode(file_get_contents("php://input"),true));
|
|
|
|
|
|
|
|
|
|
$data['user_token'] = 1;
|
|
|
|
|
$data['user_token'] = 'f6ddd0b38dc037293a18f5525d59d4eb';
|
|
|
|
|
if(empty($data['user_token']))
|
|
|
|
|
{
|
|
|
|
|
re_msg(1004,'fail','用户不存在');
|
|
|
|
|
}
|
|
|
|
|
$user_info = M('user','tab_')->where(['user_token' => $data['user_token']])->field('id,account,balance')->find();
|
|
|
|
|
|
|
|
|
|
$user_play = M('user_play','tab_')->alias('user')
|
|
|
|
|
->join('tab_game as game on user.game_id = game.id')
|
|
|
|
|
->where(['user_id' => $user_info['id']])
|
|
|
|
@ -3179,7 +3178,7 @@ class UserController extends BaseController
|
|
|
|
|
$deposit[$k]['create_time'] = date('Y-m-d',$v['create_time']);
|
|
|
|
|
}
|
|
|
|
|
$this->assign('account',$user_info['account']);
|
|
|
|
|
$this->assign('balance',$user_info['balance']);
|
|
|
|
|
$this->assign('balance',$user_info['balance']?:0);
|
|
|
|
|
$this->assign('deposit',$deposit);
|
|
|
|
|
$this->assign('user_play',$user_play);
|
|
|
|
|
$this->display('balance');
|
|
|
|
|