微信小程序项目模板文件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 line
449B

  1. const __request_base_url__ = {
  2. develop: "https://api.gongche.dev.taauav.com/api",
  3. trial: "https://api.gongche.dev.taauav.com/api",
  4. release: "https://api.gongche.taauav.com/api"
  5. }
  6. const platform = wx.getSystemInfoSync().platform
  7. const envVersion = wx.getAccountInfoSync().miniProgram.envVersion
  8. const env = platform === 'devtools' ? 'develop' : ( envVersion || 'release' )
  9. const baseurl = __request_base_url__[env]
  10. export default baseurl