|
|
@ -56,8 +56,8 @@ class GameGiftPageController extends Controller{
|
|
|
|
$list[$key]['icon'] = new_icon_url($val['icon']);
|
|
|
|
$list[$key]['icon'] = new_icon_url($val['icon']);
|
|
|
|
$list[$key]['now_time'] = NOW_TIME;
|
|
|
|
$list[$key]['now_time'] = NOW_TIME;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$game = M('game','tab_')->where(['id' => $gameId])->field('icon,game_name')->find();
|
|
|
|
$game = M('game','tab_')->where(['id' => $gameId])->field('icon,game_name,icon')->find();
|
|
|
|
$game['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? get_cover($game['icon'],"path") : C('ADMIN_DOMAIN') . get_cover($game['icon'],"path");
|
|
|
|
$game['icon'] = (substr($game['icon'], 0, 7) == "http://" || substr($game['icon'], 0, 8) == "https://" ) ? $game['icon'] : C('ADMIN_DOMAIN') . get_cover($game['icon'],"path");
|
|
|
|
$game['gift_num'] = count($list);
|
|
|
|
$game['gift_num'] = count($list);
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign('user_token', I('user_token'));
|
|
|
|
$this->assign('user_token', I('user_token'));
|
|
|
|