|
|
|
@ -1348,28 +1348,42 @@ class UserController extends BaseController
|
|
|
|
|
* @return [type] [description]
|
|
|
|
|
* @author wyr <840186209@qq.com>
|
|
|
|
|
*/
|
|
|
|
|
public function usergame($p = 1)
|
|
|
|
|
// public function usergame($p = 1)
|
|
|
|
|
// {
|
|
|
|
|
// if (!$this->islogin()) {
|
|
|
|
|
// $this->redirect('Mobile/User/login');
|
|
|
|
|
// }
|
|
|
|
|
// $page = intval($p);
|
|
|
|
|
// $page = $page ? $page : 1; //默认显示第一页数据
|
|
|
|
|
// $row = C('LIST_ROWS');
|
|
|
|
|
// $map['user_id'] = $this->suser->login_info('user_id');
|
|
|
|
|
// $data = D('DownRecord')->table('tab_down_record AS tdr')
|
|
|
|
|
// ->field('tab_game.id,tab_game.dow_status,tab_game.game_name,tab_game.game_size,tab_game.dow_num,tab_game.icon,tab_game.features,tdr.user_id,tab_game.and_dow_address,tab_game.add_game_address,tab_game.ios_dow_address,tab_game.ios_game_address,tab_game.game_score,tab_game.sdk_version')
|
|
|
|
|
// ->join("tab_game ON tdr.game_id = tab_game.id")
|
|
|
|
|
// ->where($map)
|
|
|
|
|
// ->page($page, $row)
|
|
|
|
|
// ->select();
|
|
|
|
|
|
|
|
|
|
// $this->assign("data", $data);
|
|
|
|
|
// $this->assign("page", $page);
|
|
|
|
|
// $this->display();
|
|
|
|
|
// }
|
|
|
|
|
public function usergame()
|
|
|
|
|
{
|
|
|
|
|
if (!$this->islogin()) {
|
|
|
|
|
$this->redirect('Mobile/User/login');
|
|
|
|
|
}
|
|
|
|
|
$page = intval($p);
|
|
|
|
|
$page = $page ? $page : 1; //默认显示第一页数据
|
|
|
|
|
$row = C('LIST_ROWS');
|
|
|
|
|
$map['user_id'] = $this->suser->login_info('user_id');
|
|
|
|
|
$data = D('DownRecord')->table('tab_down_record AS tdr')
|
|
|
|
|
->field('tab_game.id,tab_game.dow_status,tab_game.game_name,tab_game.game_size,tab_game.dow_num,tab_game.icon,tab_game.features,tdr.user_id,tab_game.and_dow_address,tab_game.add_game_address,tab_game.ios_dow_address,tab_game.ios_game_address,tab_game.game_score,tab_game.sdk_version')
|
|
|
|
|
->join("tab_game ON tdr.game_id = tab_game.id")
|
|
|
|
|
->where($map)
|
|
|
|
|
->page($page, $row)
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
$this->assign("data", $data);
|
|
|
|
|
$this->assign("page", $page);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 个人中心->我的游戏 AJAX加载更多
|
|
|
|
|
* @return [type] [description]
|
|
|
|
|