diff --git a/.env.development b/.env.development index 18a046a..5e62c37 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ ENV = development # 正式ws -VITE_API_WSS = 'wss://cashier.sxczgkj.cn/client' +# VITE_API_WSS = 'wss://cashier.sxczgkj.cn/client' #测试ws -# VITE_API_WSS = 'wss://wxcashiertest.sxczgkj.cn/client' +VITE_API_WSS = 'wss://wxcashiertest.sxczgkj.cn/client' # 阿伟本地ws # VITE_API_WSS = 'ws://192.168.2.17:9998/client' @@ -27,7 +27,7 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api' # VITE_API_URL = 'http://192.168.1.106:10589/cashier-client' # 测试 -# VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client' +VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client' # 正式 -VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client' \ No newline at end of file +# VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client' \ No newline at end of file diff --git a/src/components/lodop/LodopFuncs.js b/src/components/lodop/LodopFuncs.js index 4f30774..27c1c27 100644 --- a/src/components/lodop/LodopFuncs.js +++ b/src/components/lodop/LodopFuncs.js @@ -82,7 +82,7 @@ function checkOrTryHttp() { try { var WSK1 = new WebSocket(URL_WS1); WSK1.onopen = function (e) { - setTimeout("checkOrTryHttp()", 200); + setTimeout(checkOrTryHttp(), 200); } WSK1.onmessage = function (e) { if (!window.getCLodop) eval(e.data); @@ -90,7 +90,7 @@ function checkOrTryHttp() { WSK1.onerror = function (e) { var WSK2 = new WebSocket(URL_WS2); WSK2.onopen = function (e) { - setTimeout("checkOrTryHttp()", 200); + setTimeout(checkOrTryHttp(), 200); } WSK2.onmessage = function (e) { if (!window.getCLodop) eval(e.data); diff --git a/src/components/lodop/index.vue b/src/components/lodop/index.vue index ba30ea4..d2288d5 100644 --- a/src/components/lodop/index.vue +++ b/src/components/lodop/index.vue @@ -20,7 +20,7 @@