|
- const __request_base_url__ = {
- develop: "https://api.gongche.dev.taauav.com/api",
- trial: "https://api.gongche.dev.taauav.com/api",
- release: "https://api.gongche.taauav.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
|