From 3b0eb357406f61a843823408cc69375b549086e3 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期一, 24 七月 2023 15:54:02 +0800 Subject: [PATCH] no message --- h5/apph5/.hbuilderx/launch.json | 16 ++++++++++++++++ h5/apph5/manifest.json | 10 +++++++++- application/config.php | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/application/config.php b/application/config.php index 3eb4241..189272d 100644 --- a/application/config.php +++ b/application/config.php @@ -292,7 +292,7 @@ //鎻掍欢绾噣妯″紡锛屾彃浠跺惎鐢ㄥ悗鏄惁鍒犻櫎鎻掍欢鐩綍鐨刟pplication銆乸ublic鍜宎ssets鏂囦欢澶� 'addon_pure_mode' => true, //鍏佽璺ㄥ煙鐨勫煙鍚�,澶氫釜浠�,鍒嗛殧 - 'cors_request_domain' => 'localhost,127.0.0.1', + 'cors_request_domain' => 'localhost,127.0.0.1,dfgh5.ushopvip.com', //鐗堟湰鍙� 'version' => '1.3.3.20220121', //API鎺ュ彛鍦板潃 diff --git a/h5/apph5/.hbuilderx/launch.json b/h5/apph5/.hbuilderx/launch.json new file mode 100644 index 0000000..a9ec4a7 --- /dev/null +++ b/h5/apph5/.hbuilderx/launch.json @@ -0,0 +1,16 @@ +{ // launch.json 閰嶇疆浜嗗惎鍔ㄨ皟璇曟椂鐩稿叧璁剧疆锛宑onfigurations涓嬭妭鐐瑰悕绉板彲涓� app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ + // launchtype椤瑰彲閰嶇疆鍊间负local鎴杛emote, local浠h〃鍓嶇杩炴湰鍦颁簯鍑芥暟锛宺emote浠h〃鍓嶇杩炰簯绔簯鍑芥暟 + "version": "0.0", + "configurations": [{ + "default" : + { + "launchtype" : "local" + }, + "h5" : + { + "launchtype" : "remote" + }, + "type" : "uniCloud" + } + ] +} diff --git a/h5/apph5/manifest.json b/h5/apph5/manifest.json index d4cffd2..8a78e14 100644 --- a/h5/apph5/manifest.json +++ b/h5/apph5/manifest.json @@ -74,7 +74,15 @@ "mode" : "history" }, "devServer" : { - "https" : false + "proxy" : { + //閰嶇疆浠g悊鏈嶅姟鍣ㄦ潵瑙e喅璺ㄥ煙闂锛寀niapp涓嶉�傜敤CORS鏂规鍜岃缃甁SONP鏂规 + "/api/" : { + //鏄犲皠鍩熷悕 + "target" : "http://appapitest.ushopvip.com", //娴嬭瘯鐜 + "changeOrigin" : true, //鏄惁璺ㄥ煙 + "secure" : true // 鏄惁鏀寔 https 鍗忚鐨勪唬鐞� + } + } } } } -- Gitblit v1.9.3