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.

12 lines
505B

  1. const __request_base_url__ = {
  2. develop: "https://apifangke-test.t-aaron.com/api",
  3. // develop: "http://192.168.11.241:18061/api",
  4. trial: "https://apifangke-test.t-aaron.com/api",
  5. release: "https://apifangke.t-aaron.com:18063/api"
  6. }
  7. const platform = wx.getSystemInfoSync().platform
  8. const envVersion = wx.getAccountInfoSync().miniProgram.envVersion
  9. const env = platform === 'devtools' ? 'develop' : ( envVersion || 'release' )
  10. const baseurl = __request_base_url__[env]
  11. export default baseurl