Blame view

config/app.js 804 Bytes
46b6767c   刘淇   init 提交到库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  // 开发者环境:开|关
  const SWITCH_DEVELOPMENT = true
  
  /** S 是否H5端 **/
  // #ifdef H5
  const IS_H5 = true
  // #endif
  
  // #ifndef H5
  const IS_H5 = false
  // #endif
  /** E 是否H5端 **/
  
  
  /** S API BaseURL **/
  const baseURLMap = {
  	// 开发环境
  	development: 'https://test.jichengshanshui.com.cn:28303',
  	// 生产环境
  	production: IS_H5 ? location.origin : 'http://125.35.93.94:8986'
  }
  
  /** E API BaseURL **/
  export const baseURL = SWITCH_DEVELOPMENT ? baseURLMap['development'] : baseURLMap['production']
  
  export const version = '1.0.6'
  
  // export const uploadURL = baseURL + '/ylapi/yuanl/common/upload'
c7744156   刘淇   录入树木
29
  export const uploadURL = baseURL + '/ylapi/yuanl/common/upload'
46b6767c   刘淇   init 提交到库
30
  // export const OSSURL = baseURL + '/yuanlin/'
c7744156   刘淇   录入树木
31
  export const OSSURL = 'https://test.jichengshanshui.com.cn:28310/yuanlin/'