修复再来一单问题
This commit is contained in:
@@ -21,36 +21,42 @@ const baseUrlwws = debug ? proxyApiwws : "wss://czgeatws.sxczgkj.com/wss"; //
|
||||
|
||||
const version = "100";
|
||||
const autoRemoveCache = {
|
||||
count: 100000,
|
||||
size: 100000,
|
||||
count: 100000,
|
||||
size: 100000,
|
||||
};
|
||||
uni.conf = {
|
||||
debug,
|
||||
baseUrl,
|
||||
version,
|
||||
autoRemoveCache,
|
||||
baseUrlwws,
|
||||
uni.conf = {
|
||||
debug,
|
||||
baseUrl,
|
||||
version,
|
||||
autoRemoveCache,
|
||||
baseUrlwws,
|
||||
};
|
||||
|
||||
console.log('uni.conf',uni.conf)
|
||||
|
||||
export const changeEnv = (env) => {
|
||||
if (env === "test") {
|
||||
uni.conf = {
|
||||
debug: true,
|
||||
baseUrl: "http://192.168.1.42",
|
||||
phpUrl:'http://192.168.1.42:8787/api/',
|
||||
phpChatWx:'ws://192.168.1.42:2348',
|
||||
version: 100,
|
||||
autoRemoveCache,
|
||||
baseUrlwws: "ws://192.168.1.42:2348",
|
||||
};
|
||||
}
|
||||
if (env === "prod") {
|
||||
uni.conf = {
|
||||
debug: false,
|
||||
baseUrl: "https://cashier.sxczgkj.com",
|
||||
version: 100,
|
||||
autoRemoveCache,
|
||||
baseUrlwws: "wss://czgeatws.sxczgkj.com/wss",
|
||||
};
|
||||
}
|
||||
};
|
||||
if (env === "test") {
|
||||
let baseUrl = "http://192.168.1.42"
|
||||
// #ifdef H5
|
||||
baseUrl = "/api"
|
||||
// #endif
|
||||
uni.conf = {
|
||||
debug: true,
|
||||
baseUrl,
|
||||
phpUrl: 'http://192.168.1.42:8787/api/',
|
||||
phpChatWx: 'ws://192.168.1.42:2348',
|
||||
version: 100,
|
||||
autoRemoveCache,
|
||||
baseUrlwws: "ws://192.168.1.42:2348",
|
||||
};
|
||||
}
|
||||
if (env === "prod") {
|
||||
uni.conf = {
|
||||
debug: false,
|
||||
baseUrl: "https://cashier.sxczgkj.com",
|
||||
version: 100,
|
||||
autoRemoveCache,
|
||||
baseUrlwws: "wss://czgeatws.sxczgkj.com/wss",
|
||||
};
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user