| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- const mapEnvVersion = {
- /**
- * 开发版
- */
- // develop: 'http://192.168.1.166:8080', // 张
- // develop: 'http://192.168.1.101:8080',
- // develop: 'http://192.168.0.157:8080',
- // develop: 'http://192.168.1.253:8080',
- // develop: 'http://192.168.0.19:8080', // 邓
- // develop: 'http://192.168.0.217:8080', // 黄
- // develop: 'http://192.168.0.11:8080', // 王
- develop: 'http://192.168.1.21:8080', // 田
- // develop: 'http://74949mkfh190.vicp.fun', // 付
- // develop: 'http://47.109.84.152:8081',
- // develop: 'https://5ed0f7cc.r9.vip.cpolar.cn',
- // develop: 'https://smqjh.api.zswlgz.com',
- /**
- * 体验版
- */
- // trial: "http://192.168.1.166:8080/jeecg-boot",
- // trial: 'http://192.168.0.157:8080',
- trial: 'http://47.109.84.152:8081',
- // trial: 'http://192.168.1.166:8080,
- // trial: 'https://smqjh.api.zswlgz.com',
- /**
- * 正式版
- */
- release: 'https://smqjh.api.zswlgz.com',
- }
- /**
- * Base URL请求基本url
- */
- export const BASE_URL
- = handleEnvVersion()
- /**
- * 静态资源服务
- */
- export const StaticUrl = 'https://zswl-smqjh.oss-cn-chengdu.aliyuncs.com/static/static'
- function handleEnvVersion() {
- // #ifdef H5
- const mode = import.meta.env.MODE
- const h5Server = {
- // development: 'http://47.109.84.152:8081',
- // development: 'http://192.168.0.157:8080',
- development: 'http://192.168.1.21:8080',
- production: 'https://smqjh.api.zswlgz.com',
- }
- return h5Server[mode as 'development' | 'production']
- // #endif
- // #ifdef MP-WEIXIN
- return mapEnvVersion[uni.getAccountInfoSync().miniProgram.envVersion]
- // #endif
- }
- /**
- * h5小橘重定向地址
- */
- export const REDIRECT_URL = 'https://smqjh.h5.zswlgz.com/#/subPack-refueling/commonTab/index'
|