index.js 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. let BASE_URL = ''
  2. let APP_ID = ''
  3. let RESET_URL = ''
  4. let TYPE = ''
  5. let IMG_BASE_URL = ''
  6. let APPOR_BASE_URL = ''
  7. // if (process.env.NODE_ENV === 'development') {
  8. // BASE_URL = 'https://xt.sharingschool.com/sz'
  9. // APP_ID = "wx3d4605f43beda11a"//测试环境AppId
  10. // RESET_URL = "https://xtkmt.sharingschool.com/manager/index.html#/" //测试环境微信重定向页面
  11. // TYPE = 0
  12. // IMG_BASE_URL = 'https://xtimg.sharingschool.com/' //测试环境图片地址
  13. // APPOR_BASE_URL = 'https://xtkmt.sharingschool.com/kmt/index.html#/' //测试环境作业批改地址
  14. // } else {
  15. // // 1.测试环境配置
  16. BASE_URL = 'https://xt.sharingschool.com/sz' //测试环境服务器地址
  17. APP_ID = "wx3d4605f43beda11a"//测试环境AppId
  18. RESET_URL = "https://xtkmt.sharingschool.com/manager/index.html#/" //测试环境微信重定向页面
  19. TYPE = 0
  20. IMG_BASE_URL = 'https://xtimg.sharingschool.com/' //测试环境图片地址
  21. APPOR_BASE_URL = 'https://xtkmt.sharingschool.com/kmt/index.html#/' //测试环境作业批改地址
  22. // 1.分表分库测试环境配置
  23. // BASE_URL = ' https://xt.sharingschool.com/fk' //分表分库测试环境服务器地址
  24. // APP_ID = "wx3d4605f43beda11a"//测试环境AppId
  25. // RESET_URL = "https://xtkmt.sharingschool.com/manager/index.html#/" //测试环境微信重定向页面
  26. // TYPE = 0
  27. // IMG_BASE_URL = 'https://xtimg.sharingschool.com/' //测试环境图片地址
  28. // APPOR_BASE_URL = 'https://xtkmt.sharingschool.com/fk/kmt/index.html#/' //测试环境作业批改地址
  29. // -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  30. // 2.正式环境配置(Kmt)
  31. // BASE_URL = 'https://api.sharingschool.com/sz'; //正式环境地址
  32. // APP_ID = "wxd18ca9555a939281"//正式环境
  33. // RESET_URL = "https://kmt.sharingschool.com/aijia/manager/index.html#/" //正式环境微信重定向页面
  34. // TYPE = 0
  35. // IMG_BASE_URL = 'https://img.sharingschool.com'; //正式环境图片地址;
  36. // APPOR_BASE_URL = 'https://kmt.sharingschool.com/aijia/kmt/index.html#/'; //正式环境作业批改地址地址;
  37. // -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  38. // 3.OSS正式环境(aiKmt)
  39. // BASE_URL = 'https://api.sharingschool.com/sz'; // OSS正式环境地址
  40. // APP_ID = "wx5a83afb22813e986"//OSS正式环境
  41. // RESET_URL = "https://aikmt.sharingschool.com/manager/index.html#/" //OSS正式环境
  42. // TYPE = 1
  43. // IMG_BASE_URL = 'https://img.sharingschool.com'; //正式环境图片地址;
  44. // APPOR_BASE_URL = 'https://aikmt.sharingschool.com/kmt/index.html#/'; //oss正式环境作业批改地址地址;
  45. // -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  46. // 4.OSS实训环境配置(Sxkmt)
  47. // BASE_URL = 'https://sx.sharingschool.com/sz' //OSS实训环境地址
  48. // APP_ID = "wx7fe760dc3c45794d" //OSS实训环境
  49. // RESET_URL = "https://sxkmt.sharingschool.com/manager/index.html#/" //OSS实训环境
  50. // TYPE = 0
  51. // IMG_BASE_URL = 'https://xtimg.sharingschool.com' //实习,测试环境图片地址;
  52. // APPOR_BASE_URL = 'http://sxkmt.sharingschool.com/kmt/index.html#/' //Oss实习环境作业批改地址
  53. // }
  54. const TIME_OUT = 10000
  55. export {
  56. BASE_URL,
  57. TIME_OUT,
  58. APP_ID,
  59. RESET_URL,
  60. TYPE,
  61. IMG_BASE_URL,
  62. APPOR_BASE_URL
  63. }