diff --git a/common/utils/requset.js b/common/utils/requset.js index 9d6742b..6e73d71 100644 --- a/common/utils/requset.js +++ b/common/utils/requset.js @@ -2,14 +2,14 @@ * @Author: ch * @Date: 2022-03-17 17:42:32 * @LastEditors: ch - * @LastEditTime: 2022-05-10 19:56:18 + * @LastEditTime: 2022-05-17 18:15:04 * @Description: 项目接口请求统一处理器,返回一个需要token和不需要token的请求封装方法 */ import MsbUniRequest from '@/common/plugins/msbUniRequest'; import $store from '@/common/store'; -const ENV = 'test'; +const ENV = 'prod'; const BASE_URL = { 'test' : 'https://k8s-horse-gateway.mashibing.cn', 'dev' : '', diff --git a/common/utils/websocket.js b/common/utils/websocket.js index 31e2a72..bf7e847 100644 --- a/common/utils/websocket.js +++ b/common/utils/websocket.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-04-25 14:39:19 * @LastEditors: ch - * @LastEditTime: 2022-05-16 15:08:17 + * @LastEditTime: 2022-05-17 18:14:57 * @Description: file content */ import store from "../store"; @@ -107,8 +107,8 @@ const token = 'eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjQwNzA4ODAwMDAsImlkIjo5LCJ0aW1lIjox export const MsbWebSktInit = () => { return new Promise((resolve, reject) => { MsbWebSkt = uni.connectSocket({ - // url : `wss://you-gateway.mashibing.com/ws?client=${store.state.token}`, // url是websocket连接ip - url : `wss://k8s-horse-gateway.mashibing.cn/ws?client=${store.state.token}&type=1`, // url是websocket连接ip + url : `wss://you-gateway.mashibing.com/ws?client=${store.state.token}&type=1`, // url是websocket连接ip + // url : `wss://k8s-horse-gateway.mashibing.cn/ws?client=${store.state.token}&type=1`, // url是websocket连接ip // url : `ws://192.168.10.93:8090/ws?client=${token}&type=1`, // url是websocket连接ip fail: e => { reject(e) diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index c240db9..2529689 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -1,2 +1,2 @@