|
123456789101112 |
- const __request_base_url__ = {
- // develop: "http://192.168.11.11:9061/api",
- develop: "https://qmhhapi-test.t-aaron.com/api",
- trial: "https://qmhhapi-test.t-aaron.com/api",
- release: "https://qmhh.t-aaron.com/api"
- }
- const platform = wx.getSystemInfoSync().platform
- const envVersion = wx.getAccountInfoSync().miniProgram.envVersion
- const env = platform === 'devtools' ? 'develop' : ( envVersion || 'release' )
-
- const baseurl = __request_base_url__[env]
- export default baseurl
|