修改兼容h5调试
This commit is contained in:
@@ -8,7 +8,7 @@ export default (params) => {
|
||||
const shopId = uni.cache.get("shopId") * 1;
|
||||
const userInfo = uni.cache.get("userInfo") || {};
|
||||
// #ifdef H5
|
||||
token = "21f0a0b10e1d40ce9c6464037fedb792";
|
||||
token = "b61c8b0f1c9d47ad924e33c48b496ce6";
|
||||
// #endif
|
||||
let header = {
|
||||
version: uni.conf.version,
|
||||
|
||||
@@ -32,13 +32,14 @@ uni.conf = {
|
||||
baseUrlwws,
|
||||
};
|
||||
|
||||
console.log('uni.conf',uni.conf)
|
||||
|
||||
export const changeEnv = (env) => {
|
||||
if (env === "test") {
|
||||
let baseUrl = "http://192.168.1.42"
|
||||
let baseUrlwws="ws://192.168.1.42:2348"
|
||||
// #ifdef H5
|
||||
baseUrl = "/api"
|
||||
baseUrlwws="http://192.168.1.42:2348"
|
||||
// #endif
|
||||
uni.conf = {
|
||||
debug: true,
|
||||
@@ -47,7 +48,7 @@ export const changeEnv = (env) => {
|
||||
phpChatWx: 'ws://192.168.1.42:2348',
|
||||
version: 100,
|
||||
autoRemoveCache,
|
||||
baseUrlwws: "ws://192.168.1.42:2348",
|
||||
baseUrlwws,
|
||||
};
|
||||
}
|
||||
if (env === "prod") {
|
||||
@@ -59,4 +60,6 @@ export const changeEnv = (env) => {
|
||||
baseUrlwws: "wss://czgeatws.sxczgkj.com/wss",
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export default uni.conf
|
||||
Reference in New Issue
Block a user