cashier_weapp/framework/0-conf.js

29 lines
757 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://cashierapplet.sxczgkj.cn/cashierService" //测试
// const baseUrlwws = 'wss://cashierapplet.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
}