拓恒河湖长制全民护河平台WEB端
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.

environment.js 495B

2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
123456789101112
  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. export const env = platform === 'devtools' ? 'develop' : ( envVersion || 'release' )
  10. const baseurl = __request_base_url__[env]
  11. export default baseurl