diff --git a/Application/Sdk/Controller/GameGiftPageController.class.php b/Application/Sdk/Controller/GameGiftPageController.class.php index f5805f2f..fd74a928 100644 --- a/Application/Sdk/Controller/GameGiftPageController.class.php +++ b/Application/Sdk/Controller/GameGiftPageController.class.php @@ -56,8 +56,8 @@ class GameGiftPageController extends Controller{ $list[$key]['icon'] = new_icon_url($val['icon']); $list[$key]['now_time'] = NOW_TIME; } - $game = M('game','tab_')->where(['id' => $gameId])->field('icon,game_name')->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 = 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"); $game['gift_num'] = count($list); $this->assign('user_token', I('user_token')); diff --git a/Application/Sdk/Controller/UserHController.class.php b/Application/Sdk/Controller/UserHController.class.php index c47d1a4e..f4c21e94 100644 --- a/Application/Sdk/Controller/UserHController.class.php +++ b/Application/Sdk/Controller/UserHController.class.php @@ -33,7 +33,7 @@ class UserHController extends Controller ->field('user.game_name,user.bind_balance,game.icon')->select(); foreach($user_play as $k => $v) { - $cover = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? get_cover($v['icon'],"path") : C('ADMIN_DOMAIN') . get_cover($v['icon'],"path"); + $cover = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] : C('ADMIN_DOMAIN') . get_cover($v['icon'],"path"); $user_play[$k]['cover'] = $cover; } $deposit = M('deposit','tab_')->where(['user_id' => $user_info['id'],'pay_status' => 1])