7f9b73da by lihua

fix: 消息

1 parent 92c6775f
......@@ -256,12 +256,12 @@ const messageAllRead = () => {
}
const createServerConnect = () => {
let websocketUrl = '192.168.6.20:39203';
let websocketUrl = 'ws://192.168.6.20:39203';
//测试环境
if (location.origin == 'https://daop-zcgl-test.zgsjzc.com') {
websocketUrl = 'daop-zcgl-test-websocket.zgsjzc.com'
websocketUrl = 'wss://daop-zcgl-test-websocket.zgsjzc.com'
}
const ws = new WebSocket(`ws://${websocketUrl}/websocket/${userData.staffGuid}`);
const ws = new WebSocket(`${websocketUrl}/websocket/${userData.staffGuid}`);
ws.onopen = function () {
console.log('Connected to server.');
};
......
......@@ -33,7 +33,7 @@ const useUserStore = defineStore(
function getToken(data, state) {
data.platformGuid = "7f16f697aec111ef8656fa163e60becd";
data.userType = 2;
data.appKey = '672c2bf2e4b0cac8732a6104';
data.appKey = '672c2c38e4b0cac8732a6106';
data.validateUri = location.origin == 'http://localhost:9000' ? 'http://localhost:9000/' : location.origin + '/';
return getTokenPromise.value = getTokenByCode(data).then((res: any) => {
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!