config.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // var base_ui_url = "http://10.112.0.236:8088/";
  2. // var base_server_url = "http://10.112.0.236:8089/";
  3. var ISCLIENT = false;
  4. var CLIENTVERSION = 1;
  5. var base_ui_url = getCurrentaddr();
  6. var base_server_url = getserveraddr();
  7. var base_image_server_url = getImageaddr();
  8. var task_server_url = getTaskaddr();
  9. function getCurrentaddr() {
  10. return "http://" + window.location.host + "/"
  11. }
  12. function getserveraddr() {
  13. if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
  14. return "http://server_yanhai.jsxt.jsjtyxt.com:8283/";
  15. } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
  16. return "http://server_release_yanhai.jsxt.jsjtyxt.com:8283/";
  17. } else if (base_ui_url.indexOf("localhost") != -1) {
  18. //return "http://server_release_yanhai.jsxt.jsjtyxt.com/"
  19. return "http://localhost:8089/"
  20. } else if (base_ui_url.indexOf("200.200.19.126") != -1) {
  21. return "http://200.200.19.126:8089/"
  22. } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
  23. return "http://192.168.8.236:8089/"
  24. } else if (base_ui_url.indexOf("172.26.51.200:8080") != -1) {
  25. return "http://172.26.51.200:8089/"
  26. }else {
  27. return "http://10.112.0.199:8089/"
  28. // return "http://10.112.0.199:7001/"
  29. }
  30. return "http://10.112.0.199:8089/"
  31. }
  32. function getExcelServeraddr() {
  33. if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
  34. return "http://server_fwq_yanhai.jsxt.jsjtyxt.com:8283/";
  35. } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
  36. return "http://server_fwq_release_yanhai.jsxt.jsjtyxt.com:8283/";
  37. } else if (base_ui_url.indexOf("localhost") != -1) {
  38. // return "http://server_release_yanhai.jsxt.jsjtyxt.com/"
  39. return "http://localhost:9000/"
  40. } else if (base_ui_url.indexOf("200.200.19.126") != -1) {
  41. return "http://200.200.19.126:9000/"
  42. } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
  43. return "http://192.168.8.236:9000/"
  44. } else {
  45. return "http://10.112.0.199:9000/"
  46. // return "http://10.112.0.199:7010/"
  47. }
  48. return "http://10.112.0.199:9000/"
  49. }
  50. function getQzdExcelServeraddr() {
  51. if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
  52. return "http://server_fwq_yanhai.jsxt.jsjtyxt.com:8283/";
  53. } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
  54. return "http://server_fwq_release_yanhai.jsxt.jsjtyxt.com:8283/";
  55. } else if (base_ui_url.indexOf("localhost") != -1) {
  56. // return "http://server_release_yanhai.jsxt.jsjtyxt.com/"
  57. return "http://localhost:9001/"
  58. } else if (base_ui_url.indexOf("200.200.19.126") != -1) {
  59. return "http://200.200.19.126:9001/"
  60. } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
  61. return "http://192.168.8.236:9001/"
  62. } else {
  63. return "http://10.112.0.199:9001/"
  64. // return "http://10.112.0.199:7011/"
  65. }
  66. return "http://10.112.0.199:9001/"
  67. }
  68. function getImageaddr() {
  69. if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
  70. return "http://file_release_yanhai.jsxt.jsjtyxt.com:8283/";
  71. } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
  72. return "http://file_release_yanhai.jsxt.jsjtyxt.com:8283/";
  73. } else if (base_ui_url.indexOf("localhost") != -1) {
  74. return "http://10.112.0.199/"
  75. // return "http://file_release_yanhai.jsxt.jsjtyxt.com:8283/";
  76. //return "http://localhost:8081/";
  77. // return "http://200.200.19.126:8080/"
  78. } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
  79. return "http://192.168.8.236/"
  80. } else if (base_ui_url.indexOf("200.200.19.126") != -1) {
  81. return "http://200.200.19.126:8080/"
  82. } else {
  83. return "http://10.112.0.199/"
  84. // return "http://10.112.0.199:7000/"
  85. }
  86. return "http://10.112.0.199/"
  87. }
  88. function getTaskaddr() {
  89. if (base_ui_url.indexOf("jsjtyxt.com") != -1) {
  90. return "http://task_yanhai.jsxt.jsjtyxt.com:8283/";
  91. } else if (base_ui_url.indexOf("localhost") != -1) {
  92. // return "http://10.112.0.199:8099/"
  93. return "http://localhost:8099/"
  94. } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
  95. return "http://192.168.8.236:8099/"
  96. } else {
  97. return "http://10.112.0.199:8099/"
  98. }
  99. return "http://10.112.0.199:8099/"
  100. }