uniapp-app/utils/otherHost.js
2025-11-13 08:41:08 +08:00

13 lines
392 B
JavaScript

let OTHER_HOST=''
if(process.env.UNI_PLATFORM =="mp-weixin"){
const { envVersion } = uni.getAccountInfoSync().miniProgram;
if (envVersion == "release") {
OTHER_HOST='https://wx.igandan.com'
}else{
OTHER_HOST='https://dev-wx.igandan.com'
}
}else{
OTHER_HOST='https://dev-wx.igandan.com'
//OTHER_HOST='https://wx.igandan.com'
}
export default OTHER_HOST