From fd9b54633945fc0f1bbd0fe2216bcd61cdf3c81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 13 Jun 2024 09:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=88=90=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/config.js | 14 +++++++++----- common/queue.js | 6 ++++-- index.html | 3 ++- manifest.json | 5 +++-- uview-ui/libs/request/index.js | 3 ++- 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/common/config.js b/common/config.js index 72d10f3..4ae3a04 100644 --- a/common/config.js +++ b/common/config.js @@ -1,3 +1,7 @@ +const ROOTPATH = "http://120.46.52.165/sqx_fast"; +const ROOTPATH1 = "http://120.46.52.165/sqx_fast"; +const ROOTPATH3 = "wss://120.46.52.165/wss/websocket/"; + // const ROOTPATH = "http://192.168.1.169:8187/sqx_fast"; // const ROOTPATH1 = "http://192.168.1.169:8187/sqx_fast"; //客户现场 @@ -11,9 +15,9 @@ // const ROOTPATH1 = "http://192.168.1.50:8187/sqx_fast"; // const ROOTPATH3 = "wss://wx.sjajk.com/wss/websocket/";//联系客服 //生产环境 -const ROOTPATH = "https://wx.sjajk.com/sqx_fast"; -const ROOTPATH1 = "https://wx.sjajk.com/sqx_fast"; -const ROOTPATH3 = "wss://wx.sjajk.com/wss/websocket/"; //联系客服 +// const ROOTPATH = "https://wx.sjajk.com/sqx_fast";//生产需替换 +// const ROOTPATH1 = "https://wx.sjajk.com/sqx_fast";//生产需替换 +// const ROOTPATH3 = "wss://wx.sjajk.com/wss/websocket/"; //联系客服//生产需替换 //上传地址 const UPLOAD_PATH = ROOTPATH1 + '/alioss/upload'; @@ -28,8 +32,8 @@ const TX_MAP_KEY = 'VIWBZ-5OM3F-CV7JZ-NLKJY-AXSYV-TMFM6'; //ws基础连接地址 //const WS_BASE_PATH = 'ws://192.168.31.21:8187/sqx_fast/'; -//const WS_BASE_PATH = 'ws://127.0.0.1:8187/sqx_fast/'; -const WS_BASE_PATH = 'wss://admin.sjajk.com/sqx_fast/'; +const WS_BASE_PATH = 'ws://120.46.52.165/sqx_fast/'; +// const WS_BASE_PATH = 'wss://admin.sjajk.com/sqx_fast/';//生产需替换 //地图ws接口 const WS_UPLOAD_MAP_PATH = WS_BASE_PATH + 'mapWebsocket/'; diff --git a/common/queue.js b/common/queue.js index d6b2a07..cecd71b 100644 --- a/common/queue.js +++ b/common/queue.js @@ -18,11 +18,13 @@ module.exports = { }, //全局域名 部分html中需要单独替换 需要修改config中的网络请求域名 publicYuMing() { - return 'https://admin.sjajk.com' + // return 'https://admin.sjajk.com'//生产需替换 + return 'http://120.46.52.165' }, //全局域名 部分html中需要单独替换 需要修改config中的网络请求域名 publicYuMingApp() { - return 'https://wx.sjajk.com' + // return 'https://wx.sjajk.com'//生产需替换 + return 'http://120.46.52.165' }, logout() { this.remove("token"); diff --git a/index.html b/index.html index 340738e..a012471 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,8 @@ diff --git a/manifest.json b/manifest.json index 777199d..e78efcf 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "盛安到家", - "appid" : "__UNI__0A81F4F", + "appid" : "H56D02895", "description" : "", "versionName" : "1.0.1", "versionCode" : 101, @@ -183,7 +183,8 @@ "amap" : { "key" : "2acf1b8c3d1aaf0070472dec19018d96", "securityJsCode" : "2b07c8496878c327a8ae7a19de33e2a7", - "serviceHost" : "http://wx.sjajk.com/_AMapService" + // "serviceHost" : "http://wx.sjajk.com/_AMapService"//生产需替换 + "serviceHost" : "http://120.46.52.165/_AMapService" } } }, diff --git a/uview-ui/libs/request/index.js b/uview-ui/libs/request/index.js index 062cf23..1b98125 100644 --- a/uview-ui/libs/request/index.js +++ b/uview-ui/libs/request/index.js @@ -101,7 +101,8 @@ class Request { constructor() { this.config = { - baseUrl: 'https://admin.sjajk.com/', // 请求的根域名 + // baseUrl: 'https://admin.sjajk.com/', // 请求的根域名//生产需替换 + baseUrl: 'http://120.46.52.165/', // 请求的根域名 // 默认的请求头 header: {}, method: 'POST',