2023-07-15 17:51:20 +08:00
|
|
|
let httpApiThree;
|
|
|
|
let httpApi
|
2023-07-18 15:10:11 +08:00
|
|
|
// httpApi = 'https://shop.lihaink.cn' //生产
|
|
|
|
httpApi = 'https://worker-task.lihaink.cn' //生产
|
|
|
|
httpApiThree = 'https://worker-task.lihaink.cn' //生产
|
|
|
|
// httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产
|
2023-07-15 17:51:20 +08:00
|
|
|
// #ifdef H5
|
|
|
|
httpApiThree = 'baseUrlTest' //生产
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
// if (process.env.NODE_ENV === "development") {
|
|
|
|
// httpApi = "http://192.168.0.222:8324"
|
|
|
|
// // #ifdef MP-WEIXIN
|
|
|
|
// httpApiTwo = "http://cms.com"
|
|
|
|
// httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
|
|
|
// // #endif
|
|
|
|
// // #ifdef H5
|
|
|
|
// // httpApiTwo = "baseUrl" // h5跨域配置
|
|
|
|
// httpApiThree = 'baseUrlTest' // h5跨域配置
|
|
|
|
// // #endif
|
|
|
|
// } else if (process.env.NODE_ENV === 'production') {
|
|
|
|
// httpApi = 'https://shop.lihaink.cn' // 生产
|
|
|
|
// httpApiTwo = 'https://nk.lihaink.cn' // 生产
|
|
|
|
// httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产
|
|
|
|
// }
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
// 请求域名 格式: https://您的域名
|
2023-07-25 14:10:17 +08:00
|
|
|
// #ifdef MP || APP-PLUS || H5
|
2023-07-15 17:51:20 +08:00
|
|
|
HTTP_REQUEST_URL: httpApi,
|
|
|
|
HTTP_REQUEST_URL_THREE: httpApiThree,
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
// #ifdef H5
|
|
|
|
//H5接口是浏览器地址
|
|
|
|
HTTP_REQUEST_URL: httpApi || window.location.protocol + "//" + window.location.host,
|
|
|
|
HTTP_REQUEST_URL_THREE: httpApiThree || window.location.protocol + "//" + window.location.host,
|
|
|
|
// #endif
|
|
|
|
HEADER: {
|
|
|
|
'content-type': 'application/json',
|
|
|
|
//#ifdef H5
|
|
|
|
'Form-type': 'h5',
|
|
|
|
//#endif
|
|
|
|
//#ifdef MP
|
|
|
|
'Form-type': 'routine',
|
|
|
|
//#endif
|
|
|
|
//#ifdef APP-PLUS
|
|
|
|
'Form-type': 'app',
|
|
|
|
//#endif
|
|
|
|
},
|
|
|
|
// 回话密钥名称 请勿修改此配置
|
2023-07-19 11:48:36 +08:00
|
|
|
// TOKENNAME: 'X-Token',
|
|
|
|
TOKENNAME: 'token',
|
2023-07-15 17:51:20 +08:00
|
|
|
// 缓存时间 0 永久
|
|
|
|
EXPIRE: 0,
|
|
|
|
};
|