From 4f2d66a9407dfa7d07889a4a1541135f75f23ab1 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Mon, 25 Nov 2019 20:59:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?force=5Fupdate=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/UserController.class.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index 7ce4c446..939740a4 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -2486,13 +2486,14 @@ class UserController extends BaseController $data['and_file_size'] = !empty($game_source['file_size']) ? $game_source['file_size'] : 0; $data['and_version_code'] = !empty($game_source['version']) ? $game_source['version'] : 0; $data['and_version_name'] = !empty($game_source['version']) ? $game_source['version'] : ''; - $host = 'http://' . $_SERVER['HTTP_HOST']; + $host = C('DL_DOMAIN'); } else { $data['ios_remark'] = !empty($remark) ? $remark : []; $data['ios_file_size'] = !empty($game_source['file_size']) ? $game_source['file_size'] : 0; $data['ios_version_code'] = !empty($game_source['version']) ? $game_source['version'] : 0; $data['ios_version_name'] = !empty($game_source['version']) ? $game_source['version'] : ''; - $host = 'https://' . $_SERVER['HTTP_HOST']; + + $host = C('DL_DOMAIN'); } if ($request['promote_id'] > 0) { //渠道包 @@ -2519,7 +2520,7 @@ class UserController extends BaseController } else { - $data['game_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php?s=/Home/Home/promitionofregestion/pid/' . $request['promote_id'] . '/gid/' . $game_info['relation_game_id']; + $data['game_url'] = C('DL_DOMAIN') . '/index.php?s=/Home/Home/promitionofregestion/pid/' . $request['promote_id'] . '/gid/' . $game_info['relation_game_id']; $file_url = strpos($apply_info['pack_url'],'http') ===false ?$host . ltrim($apply_info['pack_url'], '.') : $apply_info['pack_url']; $pfile_url = strpos($apply_info['plist_url'],'http') ===false ?$host . ltrim($apply_info['plist_url'], '.') : $apply_info['plist_url']; } @@ -2531,7 +2532,7 @@ class UserController extends BaseController } } else { //原包 - $data['game_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/mobile.php?s=/Game/detail/id/' . $request['game_id']; + $data['game_url'] = C('DL_DOMAIN') . '/mobile.php?s=/Game/detail/id/' . $request['game_id']; $file_url = strpos($game_source['file_url'],'http') ===false ? $host . ltrim($game_source['file_url'], '.') : $game_source['file_url']; $pfile_url = strpos($game_source['plist_url'],'http')===false ? $host . ltrim($game_source['plist_url'], '.') : $game_source['plist_url']; @@ -2539,7 +2540,7 @@ class UserController extends BaseController if ($game_info['sdk_version'] == 1) { $data['and_file_url'] = $file_url; } else { - $data['ios_file_url'] = $pfile_url; + $data['ios_file_url'] = "itms-services://?action=download-manifest&url=" . $pfile_url; } echo base64_encode(json_encode(array('code' => 200, 'msg' => '请求成功', 'data' => $data))); } From 3e4df08518486255e9880a2834c1fc22b0a5a1a5 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Mon, 25 Nov 2019 21:04:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?dl=5Fdomain=20=20=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Conf/config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Application/Sdk/Conf/config.php b/Application/Sdk/Conf/config.php index 1434dced..ae0cf992 100644 --- a/Application/Sdk/Conf/config.php +++ b/Application/Sdk/Conf/config.php @@ -117,7 +117,11 @@ $config = array( 'ADMIN_DOMAIN' => 'https://mg.wmtxkj.cn/', // 'http://10.0.1.75:8089/',// 'WX_PAY_LIMIT' => 3000, 'PAY_DOMAIN' => 'https://api.wmtxkj.cn/', - 'H5_DOMAIN' => 'http://api.wmtxkj.cn/' + 'H5_DOMAIN' => 'http://api.wmtxkj.cn/', + 'DL_DOMAIN' => 'https://dl.wmtxkj.cn/', + + //'PAY_DOMAIN' => 'http://10.0.1.75:8088/', + //'H5_DOMAIN' => 'http://10.0.1.75:8088/', ); return $config; /* $pay = include(APP_PATH . "/Sdk/Conf/pay.php");