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