拓恒河湖长制全民护河平台WEB端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12 行
488B

  1. const __request_base_url__ = {
  2. // develop: "http://192.168.11.11:9061/api",
  3. develop: "https://qmhhapi.test.t-aaron.com/api",
  4. trial: "https://qmhhapi.test.t-aaron.com/api",
  5. release: "https://qmhh.t-aaron.com/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