Przeglądaj źródła

new VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO url

Michael Wang 6 lat temu
rodzic
commit
43f661bbd1
3 zmienionych plików z 3 dodań i 3 usunięć
  1. 1 1
      .env.production
  2. 1 1
      .env.staging
  3. 1 1
      src/features/OnlineExam/Examing/ws.js

+ 1 - 1
.env.production

@@ -1,4 +1,4 @@
 VUE_APP_TK_SERVER_URL=http://ecs.qmth.com.cn
 VUE_APP_WK_SERVER_SOCKET=wss://ecs.qmth.com.cn:8878/oewebsocket/
-VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://ecs.qmth.com.cn:8878/audioAnswerWebSocket
+VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://ecs.qmth.com.cn:8878/oewebsocket/audioAnswer/
 VUE_APP_GIT_REPO_VERSION=TO_BE_OVERRIDED

+ 1 - 1
.env.staging

@@ -1,3 +1,3 @@
 VUE_APP_TK_SERVER_URL=http://192.168.10.39:8868
 VUE_APP_WK_SERVER_SOCKET=wss://ecs-dev.qmth.com.cn:8878/oewebsocket/
-VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://ecs-dev.qmth.com.cn:8878/audioAnswerWebSocket
+VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO=wss://ecs-dev.qmth.com.cn:8878/oewebsocket/audioAnswer/

+ 1 - 1
src/features/OnlineExam/Examing/ws.js

@@ -14,7 +14,7 @@ export function openWS({ examRecordDataId }) {
   try {
     ws = new WebSocket(
       VUE_APP_WK_SERVER_SOCKET_FOR_AUDIO +
-        `/${examRecordDataId}/${store.state.user.key}/${store.state.user.token}`
+        `${examRecordDataId}/${store.state.user.key}/${store.state.user.token}`
     );
   } catch {
     setTimeout(() => {