更新网络请求
This commit is contained in:
parent
5d64234120
commit
8fc224533e
@ -6,35 +6,59 @@ let openPlantGrass = '-openPlantGrass-'
|
|||||||
let httpApi
|
let httpApi
|
||||||
let httpApiTwo
|
let httpApiTwo
|
||||||
let httpApiThree
|
let httpApiThree
|
||||||
// 网络接口修改此字符 小程序域名要求https
|
|
||||||
// let httpApi = 'http://192.168.31.110:8324' // 测试
|
|
||||||
if (process.env.NODE_ENV === "development") {
|
|
||||||
// httpApi = 'https://shop.lihaink.cn' // 生产
|
|
||||||
// httpApi = 'https://test.shop.lihaink.cn' //预发布环境
|
|
||||||
|
|
||||||
httpApi = "https://crmeb-test.shop.lihaink.cn"
|
// 在打包之前请检查当前环境是否正确
|
||||||
// httpApi = "http://192.168.0.222"
|
const env = 'dev'; // 开发
|
||||||
// httpApi = "http://192.168.0.108:8325"
|
// const env = 'prod'; // 生产
|
||||||
// httpApi = 'http://192.168.0.108:8325'
|
// const env = 'prew'; // 预上线
|
||||||
// #ifdef MP-WEIXIN
|
|
||||||
httpApiTwo = "https://nk.lihaink.cn"
|
|
||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
|
||||||
// #endif
|
|
||||||
// #ifdef H5
|
|
||||||
// httpApiTwo = "baseUrl" // h5跨域配置
|
|
||||||
httpApiTwo = "https://nk.lihaink.cn" // h5跨域配置
|
|
||||||
// httpApiThree = 'baseUrlTest' // h5跨域配置
|
|
||||||
|
|
||||||
// #endif
|
switch (env) {
|
||||||
} else if (process.env.NODE_ENV === 'production') {
|
case 'prod':
|
||||||
// httpApi = 'https://shop.lihaink.cn' // 生产
|
httpApi = 'https://shop.lihaink.cn' // 生产
|
||||||
|
httpApiTwo = 'https://nk.lihaink.cn'
|
||||||
// httpApi ='https://test.shop.lihaink.cn' //预发布环境
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
|
break;
|
||||||
httpApi = "https://crmeb-test.shop.lihaink.cn"
|
case 'prew':
|
||||||
httpApiTwo = 'https://nk.lihaink.cn' // 生产
|
httpApi = 'https://test.shop.lihaink.cn' //预发布环境
|
||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产
|
httpApiTwo = "https://nk.lihaink.cn"
|
||||||
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
httpApi = "https://crmeb-test.shop.lihaink.cn" // 生产
|
||||||
|
httpApiTwo = "https://nk.lihaink.cn"
|
||||||
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// // 网络接口修改此字符 小程序域名要求https
|
||||||
|
// // let httpApi = 'http://192.168.31.110:8324' // 测试
|
||||||
|
// if (process.env.NODE_ENV === "development") {
|
||||||
|
// httpApi = 'https://shop.lihaink.cn' // 生产
|
||||||
|
// // httpApi = 'https://test.shop.lihaink.cn' //预发布环境
|
||||||
|
|
||||||
|
// // httpApi = "https://crmeb-test.shop.lihaink.cn"
|
||||||
|
// // httpApi = "http://192.168.0.222"
|
||||||
|
// // httpApi = "http://192.168.0.108:8325"
|
||||||
|
// // httpApi = 'http://192.168.0.108:8325'
|
||||||
|
// // #ifdef MP-WEIXIN
|
||||||
|
// httpApiTwo = "https://nk.lihaink.cn"
|
||||||
|
// httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
|
// // #endif
|
||||||
|
// // #ifdef H5
|
||||||
|
// // httpApiTwo = "baseUrl" // h5跨域配置
|
||||||
|
// httpApiTwo = "https://nk.lihaink.cn" // h5跨域配置
|
||||||
|
// // httpApiThree = 'baseUrlTest' // h5跨域配置
|
||||||
|
|
||||||
|
// // #endif
|
||||||
|
// } else if (process.env.NODE_ENV === 'production') {
|
||||||
|
// httpApi = 'https://shop.lihaink.cn' // 生产
|
||||||
|
|
||||||
|
// // httpApi ='https://test.shop.lihaink.cn' //预发布环境
|
||||||
|
|
||||||
|
// // httpApi = "https://crmeb-test.shop.lihaink.cn"
|
||||||
|
// httpApiTwo = 'https://nk.lihaink.cn' // 生产
|
||||||
|
// httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产
|
||||||
|
// }
|
||||||
// httpApi = 'https://shop.lihaink.cn' // 生产
|
// httpApi = 'https://shop.lihaink.cn' // 生产
|
||||||
// httpApiTwo = 'https://nk.lihaink.cn' // 生产
|
// httpApiTwo = 'https://nk.lihaink.cn' // 生产
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user