7f9b73da by lihua

fix: 消息

1 parent 92c6775f
...@@ -256,12 +256,12 @@ const messageAllRead = () => { ...@@ -256,12 +256,12 @@ const messageAllRead = () => {
256 } 256 }
257 257
258 const createServerConnect = () => { 258 const createServerConnect = () => {
259 let websocketUrl = '192.168.6.20:39203'; 259 let websocketUrl = 'ws://192.168.6.20:39203';
260 //测试环境 260 //测试环境
261 if (location.origin == 'https://daop-zcgl-test.zgsjzc.com') { 261 if (location.origin == 'https://daop-zcgl-test.zgsjzc.com') {
262 websocketUrl = 'daop-zcgl-test-websocket.zgsjzc.com' 262 websocketUrl = 'wss://daop-zcgl-test-websocket.zgsjzc.com'
263 } 263 }
264 const ws = new WebSocket(`ws://${websocketUrl}/websocket/${userData.staffGuid}`); 264 const ws = new WebSocket(`${websocketUrl}/websocket/${userData.staffGuid}`);
265 ws.onopen = function () { 265 ws.onopen = function () {
266 console.log('Connected to server.'); 266 console.log('Connected to server.');
267 }; 267 };
......
...@@ -33,7 +33,7 @@ const useUserStore = defineStore( ...@@ -33,7 +33,7 @@ const useUserStore = defineStore(
33 function getToken(data, state) { 33 function getToken(data, state) {
34 data.platformGuid = "7f16f697aec111ef8656fa163e60becd"; 34 data.platformGuid = "7f16f697aec111ef8656fa163e60becd";
35 data.userType = 2; 35 data.userType = 2;
36 data.appKey = '672c2bf2e4b0cac8732a6104'; 36 data.appKey = '672c2c38e4b0cac8732a6106';
37 data.validateUri = location.origin == 'http://localhost:9000' ? 'http://localhost:9000/' : location.origin + '/'; 37 data.validateUri = location.origin == 'http://localhost:9000' ? 'http://localhost:9000/' : location.origin + '/';
38 return getTokenPromise.value = getTokenByCode(data).then((res: any) => { 38 return getTokenPromise.value = getTokenByCode(data).then((res: any) => {
39 getTokenPromise.value = null; 39 getTokenPromise.value = null;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!