zhuguifei
2025-07-25 85a15646ffe20ed2bbb2042ec500df8c850a69cc
common/api.js
@@ -1,15 +1,18 @@
import {
   fly
} from '@/common/request/fly.js'
const base = "http://192.168.21.3:9999"
// const base = "https://lanpucloud.cn"
//配置请求基地址
fly.config.baseURL = "http://lanpucloud.cn/herb"
fly.config.baseURL = base + ""
const ip = uni.getStorageSync('lan_ip');
if (ip) {
   fly.config.baseURL = "http://" + ip + ":9999"
}
const mqttBaseUrl = "lanpucloud.cn";
const emqxBaseUrl = "http://" + mqttBaseUrl + ":1883/api/v5"
const emqxBaseUrl =  base + ":1883/api/v5";
// 测试
function test(params) {