|
@@ -66,7 +66,7 @@ function onAudioAnswer(event: MessageEvent<string>) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-let wxSocketLock = false;
|
|
|
+// let wxSocketLock = false;
|
|
|
export function useWXSocket() {
|
|
|
const { startWS } = useWebSocket();
|
|
|
|
|
@@ -75,8 +75,11 @@ export function useWXSocket() {
|
|
|
() => {
|
|
|
if (!store.exam.WEIXIN_ANSWER_ENABLED) return;
|
|
|
|
|
|
- if (wxSocketLock) return;
|
|
|
- wxSocketLock = true;
|
|
|
+ // console.log("start ws");
|
|
|
+ logger({ cnl: ["server"], act: "useWXSocket" });
|
|
|
+
|
|
|
+ // if (wxSocketLock) return;
|
|
|
+ // wxSocketLock = true;
|
|
|
|
|
|
// init data
|
|
|
store.exam.questionAnswerFileUrl = [];
|