const debug = process.env.NODE_ENV == 'development' ? true : false; // #ifdef H5 const proxyApi = "/api" // #endif // #ifdef MP-WEIXIN || APP // const proxyApi = 'http://192.168.2.42:9889/cashierService' // 王伟 // const proxyApi = 'http://192.168.2.74:9888/cashierService' // 帆哥 // const proxyApiwws = 'ws://192.168.2.74:9888/cashierService' // 测试 const proxyApi = 'https://wxcashiertest.sxczgkj.cn/cashierService' // 测试 const proxyApiwws = 'wss://wxcashiertest.sxczgkj.cn/netty' // 测试 // #endif // #ifdef H5 const baseUrl = debug ? proxyApi + '/cashierService' : "https://cashier.sxczgkj.cn/cashierService" const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService' // #endif // #ifdef APP || MP-WEIXIN const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService' // 线上 const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/netty' // 线上 // const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上 // const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上/ // #endif // import VConsole from "./vConsole.js" // if (debug) { // new VConsole() // } const version = '100' const autoRemoveCache = { count: 100000, size: 100000 } uni.conf = { debug, baseUrl, version, autoRemoveCache, baseUrlwws }