From 74c1f265632074cc54cf3375b0f60bafafdce36a Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 25 Oct 2021 11:56:58 +0800 Subject: [PATCH] =?UTF-8?q?uni-app=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/config/app.js | 12 +----------- template/uni-app/manifest.json | 30 ++---------------------------- 2 files changed, 3 insertions(+), 39 deletions(-) diff --git a/template/uni-app/config/app.js b/template/uni-app/config/app.js index c7897cd8a..86fa0e488 100644 --- a/template/uni-app/config/app.js +++ b/template/uni-app/config/app.js @@ -4,23 +4,13 @@ module.exports = { // #ifdef MP || APP-PLUS // 请求域名 格式: https://您的域名 HTTP_REQUEST_URL: `https://您的域名`, - // 长连接 格式:wss://您的域名:20003 - // 需要在后台设置->基础配置->WSS配置 开启WSS配置,并上传证书,重启workerman后生效 - // 请在PHP项目根目录下启动,长连接命令:sudo -u www php think workerman start --d - // 系统默认客服端口20003,如果需要修改端口,请修改【20003】 - VUE_APP_WS_URL: `wss://您的域名:20003`, // #endif - // H5配置 // #ifdef H5 //H5接口是浏览器地址,非单独部署不用修改 - HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host, - // 长连接地址,非单独部署不用修改 - // 系统默认客服端口20003,如果需要修改端口,请修改【20003】 - VUE_APP_WS_URL: `ws://${window.location.host}:20003`, + HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host, // #endif - // 以下配置在不做二开的前提下,不需要做任何的修改 HEADER: { 'content-type': 'application/json', diff --git a/template/uni-app/manifest.json b/template/uni-app/manifest.json index 3d94b715c..90a10abe9 100644 --- a/template/uni-app/manifest.json +++ b/template/uni-app/manifest.json @@ -16,16 +16,7 @@ "delay" : 0 }, /* 模块配置 */ - "modules" : { - "VideoPlayer" : {}, - "Share" : {}, - "Push" : {}, - "OAuth" : {}, - "Payment" : {}, - "Maps" : {}, - "LivePusher" : {}, - "Geolocation" : {} - }, + "modules" : {}, "safearea" : { "bottom" : { "offset" : "none" @@ -36,28 +27,11 @@ /* android打包配置 */ "android" : { "permissions" : [ - "", - "", - "", - "", - "", - "", "", - "", "", "", - "", - "", - "", - "", - "", - "", - "", - "", "", - "", - "", - "" + "" ], "abiFilters" : [ "armeabi-v7a" ] },