adultDeviceApp/config.js

18 lines
432 B
JavaScript
Raw Normal View History

2022-05-11 09:24:06 +08:00
const accountInfo = wx.getAccountInfoSync();
const appid = accountInfo.miniProgram.appId
uni.setStorageSync('appid', appid)
let host = ""
if (process.env.NODE_ENV === 'development') {
2022-05-13 09:22:34 +08:00
console.log("开发环境")
// host = "https://ttybapi.pcxbc.com"
host = "https://ybapi.pcxbc.com"
2022-05-11 09:24:06 +08:00
} else {
2022-05-13 09:22:34 +08:00
console.log("生产环境")
host = "https://ybapi.pcxbc.com"
2022-05-11 09:24:06 +08:00
}
console.log("appid", appid)
module.exports = {
2022-05-13 09:22:34 +08:00
appid,
host,
2022-05-11 09:24:06 +08:00
};