unknown 4 vuotta sitten
vanhempi
commit
a1861597fe

+ 1 - 1
admin/src/libs/request.js

@@ -45,7 +45,7 @@ service.interceptors.response.use(
     // 处理后端响应数据状态码不在预设值得情况下,处理异常,这里预设值为2000
     if (data.code && data.code != 0) {
       // 再进一步判断
-      if (data.code == 3111 || data.code == 3005) {
+      if (data.code == 3111 || data.code == 3005 || data.code == 3004) {
         data.code == 3005 && Message.error({ content: 'token过期,请重新登录' })
         app.$router.push('/login')
         setToken('')

+ 4 - 4
miniprogram/config/config.js

@@ -1,5 +1,5 @@
-export const IM_HOST = 'ws://haowantest.4dkankan.com'
-export const API_BASE_URL = 'http://haowantest.4dkankan.com'
+// export const IM_HOST = 'ws://haowantest.4dkankan.com'
+// export const API_BASE_URL = 'http://haowantest.4dkankan.com'
 
 
 // export const IM_HOST = 'ws://192.168.0.83:8075'
@@ -7,5 +7,5 @@ export const API_BASE_URL = 'http://haowantest.4dkankan.com'
 // export const API_BASE_URL = 'http://192.168.0.83:8075'
 
 
-// export const IM_HOST = 'wss://haowan.4dkankan.com'
-// export const API_BASE_URL = 'https://haowan.4dkankan.com'
+export const IM_HOST = 'wss://haowan.4dkankan.com'
+export const API_BASE_URL = 'https://haowan.4dkankan.com'

+ 2 - 1
miniprogram/pages/web/web.js

@@ -22,7 +22,7 @@ Page({
     url: "",
     pullUrl: [],
     pushUrl: '',
-    live_base_url: "rtmp://120.24.85.77:1935/hls",
+    live_base_url: "rtmp://8.129.178.48:1935/hls",
     socketOpts: {},
     room_id: '',
     hasBeLogin: false,
@@ -120,6 +120,7 @@ Page({
       pullUrl: [],
       pushUrl: ''
     })
+    this.trtcRoomContext && this.trtcRoomContext.exitRoom()
   },
   sendVrCard() {
     if (this.companyDetail.guideId === getApp().globalData.userinfo.viewerId) {

+ 6 - 7
miniprogram/project.config.json

@@ -21,7 +21,7 @@
     "checkSiteMap": true,
     "uploadWithSourceMap": true,
     "compileHotReLoad": false,
-    "useMultiFrameRuntime": false,
+    "useMultiFrameRuntime": true,
     "useApiHook": true,
     "babelSetting": {
       "ignore": [],
@@ -31,8 +31,12 @@
     "useIsolateContext": true,
     "useCompilerModule": true,
     "userConfirmedUseCompilerModuleSwitch": false,
+    "userConfirmedBundleSwitch": false,
     "packNpmManually": false,
-    "packNpmRelationList": []
+    "packNpmRelationList": [],
+    "minifyWXSS": true,
+    "bundle": false,
+    "useApiHostProcess": false
   },
   "compileType": "miniprogram",
   "libVersion": "2.10.4",
@@ -46,15 +50,12 @@
   "simulatorPluginLibVersion": {},
   "condition": {
     "search": {
-      "current": -1,
       "list": []
     },
     "conversation": {
-      "current": -1,
       "list": []
     },
     "plugin": {
-      "current": -1,
       "list": []
     },
     "game": {
@@ -62,11 +63,9 @@
       "list": []
     },
     "gamePlugin": {
-      "current": -1,
       "list": []
     },
     "miniprogram": {
-      "current": -1,
       "list": [
         {
           "id": -1,