2025-05-22 16:37:43 +08:00
|
|
|
|
// H5端开发和生产环境协议
|
|
|
|
|
let protocalDev = "wss://";
|
|
|
|
|
let protocalProd = "wss://";
|
|
|
|
|
|
|
|
|
|
// 条件编译,微信端和移动端使用wxs协议
|
|
|
|
|
// #ifdef MP-WEIXIN || APP-PLUS
|
|
|
|
|
protocalDev = 'wxs://';
|
|
|
|
|
protocalProd = 'wxs://';
|
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
// 腾讯地图key
|
|
|
|
|
let qqmapKey = '4PDBZ-4KQKU-AX6VO-GU7NB-INDZJ-YBFXC';
|
|
|
|
|
|
|
|
|
|
// 心知天气key
|
|
|
|
|
let xinzhiKey = 'SBh45_yy21FU5ErV_';
|
|
|
|
|
|
2025-07-09 17:11:02 +08:00
|
|
|
|
let WEBVIEW_URL = 'https://xaznkj.cn/';
|
|
|
|
|
|
2025-05-22 16:37:43 +08:00
|
|
|
|
const CONFIG = {
|
|
|
|
|
// 开发环境配置
|
|
|
|
|
development: {
|
2025-07-03 08:57:13 +08:00
|
|
|
|
officialWebUrl: 'https://xaznkj.cn/',
|
|
|
|
|
baseUrl: 'https://xaznkj.cn/prod-api/',
|
|
|
|
|
mqttServer: protocalProd + 'xaznkj.cn/mqtt',
|
|
|
|
|
decoderUrl: 'https://xaznkj.cn/',
|
2025-05-22 16:37:43 +08:00
|
|
|
|
qqmapKey,
|
|
|
|
|
xinzhiKey,
|
|
|
|
|
},
|
|
|
|
|
// 生产环境配置
|
|
|
|
|
production: {
|
2025-07-03 08:57:13 +08:00
|
|
|
|
officialWebUrl: 'https://xaznkj.cn/',
|
|
|
|
|
baseUrl: 'https://xaznkj.cn/prod-api/',
|
|
|
|
|
mqttServer: protocalProd + 'xaznkj.cn/mqtt',
|
|
|
|
|
decoderUrl: 'https://xaznkj.cn/',
|
2025-05-22 16:37:43 +08:00
|
|
|
|
qqmapKey,
|
|
|
|
|
xinzhiKey,
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-08 17:21:25 +08:00
|
|
|
|
|
|
|
|
|
// const CONFIG = {
|
|
|
|
|
// // 开发环境配置
|
|
|
|
|
// development: {
|
|
|
|
|
// officialWebUrl: 'https://iot.iot-xcwl.cn/',
|
|
|
|
|
// baseUrl: 'https://iot.iot-xcwl.cn/prod-api/',
|
|
|
|
|
// mqttServer: protocalProd + 'iot.iot-xcwl.cn/mqtt',
|
|
|
|
|
// decoderUrl: 'https://iot.iot-xcwl.cn/',
|
|
|
|
|
// qqmapKey,
|
|
|
|
|
// xinzhiKey,
|
|
|
|
|
// },
|
|
|
|
|
// // 生产环境配置
|
|
|
|
|
// production: {
|
|
|
|
|
// officialWebUrl: 'https://iot.iot-xcwl.cn/',
|
|
|
|
|
// baseUrl: 'https://iot.iot-xcwl.cn/prod-api/',
|
|
|
|
|
// mqttServer: protocalProd + 'iot.iot-xcwl.cn/mqtt',
|
|
|
|
|
// decoderUrl: 'https://iot.iot-xcwl.cn/',
|
|
|
|
|
// qqmapKey,
|
|
|
|
|
// xinzhiKey,
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
2025-05-22 16:37:43 +08:00
|
|
|
|
export default CONFIG[process.env.NODE_ENV];
|