落地页

master
chenxiaojun 5 years ago
parent 7c360e40f6
commit 2fcca7fcaa

@ -124,7 +124,12 @@ class HomeController extends Controller
$gameSdkType = $gameData['sdk_version']; $gameSdkType = $gameData['sdk_version'];
$map['tab_game.relation_game_id'] = $RelationGameId; $map['tab_game.relation_game_id'] = $RelationGameId;
$data = M('game', 'tab_')->field('tab_game.id,tab_game.sdk_version,tab_game.icon,tab_game.screenshot,tab_game.relation_game_id,tab_game.relation_game_name,ta.enable_status,tab_game.dow_status,tab_game.features,tab_game.flooring_page_imgs,ta.promote_id')->where($map)->join('tab_apply ta ON ta.game_id = tab_game.id and ta.offline_status = 0 and ta.promote_id=' . intval($_GET['pid']))->select(); $data = M('game', 'tab_')
->field('tab_game.id,tab_game.sdk_version,tab_game.icon,tab_game.screenshot,tab_game.relation_game_id,tab_game.relation_game_name,ta.enable_status,tab_game.dow_status,tab_game.features,tab_game.flooring_page_imgs,ta.promote_id')
->join('tab_apply ta ON ta.game_id = tab_game.id and ta.offline_status = 0 and ta.promote_id=' . intval($_GET['pid']))
->where($map)
->group('tab_game.id')
->select();
foreach ($data as $key => $value) { foreach ($data as $key => $value) {
if (!empty($value['flooring_page_imgs'])) { if (!empty($value['flooring_page_imgs'])) {
@ -132,11 +137,6 @@ class HomeController extends Controller
} }
} }
if (I('get.cs',0) > 0) {
var_dump($data);
die;
}
$this->assign('data', $data); $this->assign('data', $data);
$this->assign('gameSdkType', $gameSdkType); $this->assign('gameSdkType', $gameSdkType);
$this->display(); $this->display();

Loading…
Cancel
Save