config.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // test 测试环境
  2. const test = {
  3. // BASE_URL: "https://testapi.xyyxt.net",
  4. // BASE_URL: "http://120.79.166.78:19012",
  5. BASE_URL: "http://192.168.1.123:5055",
  6. BASE_IMG_URL: "https://file-dev.xyyxt.net/",
  7. domain: "h.xyyxt.net",
  8. tenantId: "867735392558919680", //详粤云学堂
  9. appid: "wxd3c8ae80cf43a305",
  10. };
  11. // const index = 0; // 测试环境
  12. const index = 1; // 祥粤云学堂1
  13. // const index = 2 // 祥粤学堂
  14. // const index = 3 // 勘设云学堂1
  15. // const index = 4 // 中正学堂1
  16. // const index = 5 // 山西云学堂
  17. // const index = 6 // 预发布
  18. const set = [
  19. test,
  20. // 祥粤云学堂
  21. {
  22. BASE_URL: "https://api.xyyxt.net",
  23. // BASE_URL: "https://api.gdzckj.net",
  24. BASE_IMG_URL: "https://file.xyyxt.net/",
  25. tenantId: "867735392558919680",
  26. appid: "wxd3c8ae80cf43a305",
  27. tenantName: "祥粤云学堂",
  28. },
  29. // 祥粤学堂
  30. {
  31. BASE_URL: "https://api.xyyxt.net",
  32. BASE_IMG_URL: "https://file.xyyxt.net/",
  33. tenantId: "667735392758919630",
  34. appid: "wx871153afc95f55f4",
  35. tenantName: "祥粤学堂",
  36. },
  37. // 勘设云学堂
  38. {
  39. BASE_URL: "https://api.xyyxt.net",
  40. BASE_IMG_URL: "https://file.xyyxt.net/",
  41. tenantId: "567735392758918520",
  42. appid: "wx29d0ad81e625ad81",
  43. tenantName: "勘设云学堂",
  44. },
  45. // 中正云学堂
  46. {
  47. BASE_URL: "https://api.xyyxt.net",
  48. BASE_IMG_URL: "https://file.xyyxt.net/",
  49. tenantId: "141250585240548145",
  50. appid: "wx5872ef563d13dabf",
  51. tenantName: "中正云学堂",
  52. },
  53. // 山西云学堂
  54. {
  55. BASE_URL: "https://api.xyyxt.net",
  56. BASE_IMG_URL: "https://file.xyyxt.net/",
  57. tenantId: "471722209971055962",
  58. appid: "wx5872ef563d13dabf",
  59. tenantName: "山西云学堂",
  60. },
  61. {
  62. BASE_URL: "https://test.xyyxt.net",
  63. BASE_IMG_URL: "https://file.xyyxt.net/",
  64. domain: "h.xyyxt.net",
  65. tenantId: "867735392558919680", //详粤云学堂
  66. appid: "wxd3c8ae80cf43a305",
  67. tenantName: "祥粤云学堂",
  68. },
  69. ];
  70. export default set[index];
  71. // #ifdef H5
  72. import vconsole from "vconsole";
  73. if (index == 0) {
  74. new vconsole();
  75. }
  76. // #endif