Files
cashier_weapp/framework/0-conf.js
魏啾 45f8f23fcc 1
2024-04-09 09:55:04 +08:00

30 lines
758 B
JavaScript

const debug = true;
// #ifdef H5
const proxyApi = "/api"
// #endif
// #ifdef MP-WEIXIN || MP-ALIPAY
const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上
const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上
// const baseUrl = "https://wxcashiertest.sxczgkj.cn/cashierService" //测试
// const baseUrlwws = 'wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
// #endif
// #ifdef H5
const baseUrl = debug ? proxyApi : 'http://192.168.2.161:9889/cashierService/' // 线上
// #endif
// import VConsole from "./vConsole.js"
// if (debug) {
// // new VConsole()
// }
const version = '109'
const autoRemoveCache = {
count: 100000,
size: 100000
}
uni.conf = {
debug,
baseUrl,
version,
autoRemoveCache,
baseUrlwws
}