| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- // var base_ui_url = "http://10.112.0.236:8088/";
- // var base_server_url = "http://10.112.0.236:8089/";
- var ISCLIENT = false;
- var CLIENTVERSION = 1;
- var base_ui_url = getCurrentaddr();
- var base_server_url = getserveraddr();
- var base_image_server_url = getImageaddr();
- var task_server_url = getTaskaddr();
- function getCurrentaddr() {
- return "http://" + window.location.host + "/"
- }
- function getserveraddr() {
- if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
- return "http://server_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
- return "http://server_release_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("localhost") != -1) {
- //return "http://server_release_yanhai.jsxt.jsjtyxt.com/"
- return "http://localhost:8089/"
- } else if (base_ui_url.indexOf("200.200.19.126") != -1) {
- return "http://200.200.19.126:8089/"
- } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
- return "http://192.168.8.236:8089/"
- } else if (base_ui_url.indexOf("172.26.51.200:8080") != -1) {
- return "http://172.26.51.200:8089/"
- }else {
- return "http://10.112.0.199:8089/"
- // return "http://10.112.0.199:7001/"
- }
- return "http://10.112.0.199:8089/"
- }
- function getExcelServeraddr() {
- if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
- return "http://server_fwq_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
- return "http://server_fwq_release_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("localhost") != -1) {
- // return "http://server_release_yanhai.jsxt.jsjtyxt.com/"
- return "http://localhost:9000/"
- } else if (base_ui_url.indexOf("200.200.19.126") != -1) {
- return "http://200.200.19.126:9000/"
- } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
- return "http://192.168.8.236:9000/"
- } else {
- return "http://10.112.0.199:9000/"
- // return "http://10.112.0.199:7010/"
- }
- return "http://10.112.0.199:9000/"
- }
- function getQzdExcelServeraddr() {
- if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
- return "http://server_fwq_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
- return "http://server_fwq_release_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("localhost") != -1) {
- // return "http://server_release_yanhai.jsxt.jsjtyxt.com/"
- return "http://localhost:9001/"
- } else if (base_ui_url.indexOf("200.200.19.126") != -1) {
- return "http://200.200.19.126:9001/"
- } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
- return "http://192.168.8.236:9001/"
- } else {
- return "http://10.112.0.199:9001/"
- // return "http://10.112.0.199:7011/"
- }
- return "http://10.112.0.199:9001/"
- }
- function getImageaddr() {
- if (base_ui_url.indexOf("file_yanhai.jsxt.jsjtyxt.com") != -1) {
- return "http://file_release_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("file_release_yanhai") != -1) {
- return "http://file_release_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("localhost") != -1) {
- return "http://10.112.0.199/"
- // return "http://file_release_yanhai.jsxt.jsjtyxt.com:8283/";
- //return "http://localhost:8081/";
- // return "http://200.200.19.126:8080/"
- } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
- return "http://192.168.8.236/"
- } else if (base_ui_url.indexOf("200.200.19.126") != -1) {
- return "http://200.200.19.126:8080/"
- } else {
- return "http://10.112.0.199/"
- // return "http://10.112.0.199:7000/"
- }
- return "http://10.112.0.199/"
- }
- function getTaskaddr() {
- if (base_ui_url.indexOf("jsjtyxt.com") != -1) {
- return "http://task_yanhai.jsxt.jsjtyxt.com:8283/";
- } else if (base_ui_url.indexOf("localhost") != -1) {
- // return "http://10.112.0.199:8099/"
- return "http://localhost:8099/"
- } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
- return "http://192.168.8.236:8099/"
- } else {
- return "http://10.112.0.199:8099/"
- }
- return "http://10.112.0.199:8099/"
- }
|