const accountInfo = wx.getAccountInfoSync();
const env = accountInfo.miniProgram.envVersion;
const URLMap = {
  develop: 'https://api-qa.bbztx.com/', //开发版
  trial: 'https://wap.bbztx.com/', //体验版
  release: 'https://api.bbztx.com/', //正式版
  qa:'https://api-qa.bbztx.com/'
}
// URLMap[env] https://api-qa.bbztx.com/
console.log(accountInfo,URLMap,URLMap[env])
module.exports = {
  version:"1.25.0",
  // apiServer:'http://192.168.0.179:8081/bbztx/',//夏目
  apiServer: URLMap[env],//api,wap "http://192.168.0.29:8081/bbztx/"
  imgPath: 'https://img.bbztx.com/'+(URLMap[env]=='https://api.bbztx.com/'?'images':'image_test')+'/covor_image/',
  ossImgPath:"https://img.bbztx.com/",
  imgUrl:"https://m.bbztx.com",//服务器图片https://test.bbztx.com;https://m.bbztx.com
  appId: "wx1e4186c018191840",//正式wxe9bc31763c55724d 测试wx2be0591b14e8883a
  // "appid": "wxe9bc31763c55724d",
  invitePrice: parseFloat(160),
  duration: 5,
  npsNum: 3,
  channelInfo: {
    channel: 0,
    channelTimes: 0
  },
  invitePopupTime: true, //约伴邀请弹窗显示一次
  cardTypeArr: ["内地身份证号", "护照号", "军官证号", "港澳通行证号", "台胞证号", "其他证号"],
  medal: [{
    'name': '宝贝勋章',
    'img': '/img/x1.png'
  }, {
    'name': '勇士勋章',
    'img': '/img/x2.png'
  }, {
    'name': '英雄勋章',
    'img': '/img/x3.png'
  }, {
    'name': '骑士勋章',
    'img': '/img/x4.png'
  }, {
    'name': '王者勋章',
    'img': '/img/x5.png'
  }, {
    'name': '彩虹勋章·赤',
    'img': '/img/x6.png'
  }, {
    'name': '彩虹勋章·橙',
    'img': '/img/x7.png'
  }, {
    'name': '彩虹勋章·黄',
    'img': '/img/x8.png'
  }, {
    'name': '彩虹勋章·绿',
    'img': '/img/x9.png'
  }, {
    'name': '彩虹勋章·青',
    'img': '/img/x10.png'
  }, {
    'name': '彩虹勋章·蓝',
    'img': '/img/x11.png'
  }, {
    'name': '彩虹勋章·紫',
    'img': '/img/x12.png'
  }],
  countrys: {
    "英国": "britain",
    "新加坡": "singapore",
    "日本": "japan",
    "泰国": "thailand"
  },
  provinces: {
    "内蒙古": "neimenggu",
    "北京": "beijing",
    "上海": "shanghai",
    "浙江": "zhejiang",
    "广东": "guangdong",
    "天津": "tianjin",
    "江苏": "jiangsu",
    "陕西": "shanxi",
    "山东": "sandong",
    "河南": "henan",
    "湖北": "hubei",
    "湖南": "hunan",
    "福建": "fujian",
    "安徽": "anhui",
    "四川": "sichuan",
    "广西": "guangxi",
    "海南": "hainan",
    "云南": "yunnan",
    "辽宁": "liaoning"
  },
  userRole: [{
    startPoint: 0,
    endPoint: 499,
    "levelName": "普通",
    "level": 0
  }, {
    startPoint: 500,
    endPoint: 999,
    "levelName": "青铜",
    "level": 1,
    days: 9.8,
    mini: 9.8
  }, {
    startPoint: 1000,
    endPoint: 2999,
    "levelName": "白银",
    "level": 2,
    time: 2,
    days: 9.6,
    mini: 9.7,
    camp: 9.9
  }, {
    startPoint: 3000,
    endPoint: 4999,
    "levelName": "黄金",
    "level": 3,
    time: 5,
    days: 9.2,
    mini: 9.6,
    camp: 9.8
  }, {
    startPoint: 5000,
    endPoint: 9999,
    "levelName": "铂金",
    "level": 4,
    time: 10,
    days: 9,
    mini: 9.5,
    camp: 9.7
  }, {
    startPoint: 10000,
    endPoint: 29999,
    "levelName": "钻石",
    "level": 5,
    time: 15,
    days: 8.8,
    mini: 9.2,
    camp: 9.6
  }, {
    startPoint: 30000,
    "levelName": "星耀",
    "level": 6,
    time: 20,
    days: 8,
    mini: 9,
    camp: 9.5
  }],
  coin_level: [{
      level: 1,
      levelName: '普通',
      next_level: '白银',
      min_num: 0,
      max_num: 500,
      bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478678081324.png'
    },
    {
      level: 2,
      levelName: '白银',
      next_level: '黄金',
      min_num: 500,
      max_num: 3000,
      bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478675014263.png',
      time: 5
    },
    {
      level: 3,
      levelName: '黄金',
      next_level: '一钻',
      min_num: 3000,
      max_num: 8000,
      bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478672013220.png',
      time: 10
    },
    {
      level: 4,
      levelName: '一钻',
      next_level: '二钻',
      min_num: 8000,
      max_num: 15000,
      bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478666081396.png',
      time: 15
    },
    {
      level: 5,
      levelName: '二钻',
      next_level: '三钻',
      min_num: 15000,
      max_num: 30000,
      bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478660056372.png',
      time: 20
    },
    {
      level: 6,
      levelName: '三钻',
      next_level: '',
      min_num: 30000,
      max_num: 1000000,
      bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478669045931.png',
    },
  ],
}