H5页面图片

master
zhanglingsheng 5 years ago
parent 3b311d4542
commit 643c8b996a

@ -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'));

@ -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])

Loading…
Cancel
Save