const accountInfo = wx.getAccountInfoSync();
const envVersion = accountInfo.miniProgram.envVersion; //'develop' | 'trial' | 'release'
const URLMap = {
  develop: { // 开发版
    BASE_URL: 'http://192.168.0.148:83', //接口地址
    BASEIMG_URL: 'https://wx.js-whzl.com:8055/preview/', //图片预览上传地址
  },
  trial: { // 体验版
    BASE_URL: 'http://120.46.83.155:18999' + '/api', //接口地址
    BASEIMG_URL: 'https://wx.js-whzl.com:8055/preview/', //图片预览上传地址
  },
  release: { //正式版
    BASE_URL: 'https://wx.js-whzl.com:10008' + '/api', //接口地址
    BASEIMG_URL: 'https://wx.js-whzl.com:8055/preview/', //图片预览上传地址
  }
}
module.exports = {
  host: URLMap[envVersion]
}                                                                                                                                                                                                                                    