diff --git a/Application/Sdk/Conf/config.php b/Application/Sdk/Conf/config.php index 1434dced..cd540ed3 100644 --- a/Application/Sdk/Conf/config.php +++ b/Application/Sdk/Conf/config.php @@ -114,7 +114,7 @@ $config = array( 'SQ_SHORTCUT' => 15, 'SQ_SMALL_PROGRAM' => 16, //双乾 小程序 ), - 'ADMIN_DOMAIN' => 'https://mg.wmtxkj.cn/', // 'http://10.0.1.75:8089/',// + 'ADMIN_DOMAIN' => 'http://www.platform.com', // 'http://10.0.1.75:8089/',// 'WX_PAY_LIMIT' => 3000, 'PAY_DOMAIN' => 'https://api.wmtxkj.cn/', 'H5_DOMAIN' => 'http://api.wmtxkj.cn/' diff --git a/Application/Sdk/Controller/GameGiftPageController.class.php b/Application/Sdk/Controller/GameGiftPageController.class.php index fd74a928..eae1787f 100644 --- a/Application/Sdk/Controller/GameGiftPageController.class.php +++ b/Application/Sdk/Controller/GameGiftPageController.class.php @@ -57,7 +57,8 @@ class GameGiftPageController extends Controller{ $list[$key]['now_time'] = NOW_TIME; } $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); $this->assign('user_token', I('user_token')); diff --git a/Application/Sdk/Controller/UserHController.class.php b/Application/Sdk/Controller/UserHController.class.php index f4c21e94..9d66a711 100644 --- a/Application/Sdk/Controller/UserHController.class.php +++ b/Application/Sdk/Controller/UserHController.class.php @@ -33,7 +33,8 @@ 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://" ) ? $v['icon'] : C('ADMIN_DOMAIN') . get_cover($v['icon'],"path"); + $icon = get_cover($v['icon'],"path"); + $cover = (substr($icon, 0, 7) == "http://" || substr($icon, 0, 8) == "https://" ) ? $icon : C('ADMIN_DOMAIN') . $icon; $user_play[$k]['cover'] = $cover; } $deposit = M('deposit','tab_')->where(['user_id' => $user_info['id'],'pay_status' => 1])