Ver código fonte

日常开发

linxuxiang 1 mês atrás
pai
commit
581ab14db6
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      src/utils/trainWs.ts

+ 3 - 0
src/utils/trainWs.ts

@@ -248,6 +248,9 @@ export function useWs() {
       if (version == 'v2') {
         type = type + '_' + version;
       }
+			if (['task_starts','exam_starts','msgfrom_frontend','exam_ends','task_starts_v2','exam_starts_v2','msgfrom_frontend_v2','exam_ends_v2'].includes(type)) {
+				console.log(`【发送:${type}】`, JSON.stringify(data))
+			}
       socket.emit(type, JSON.stringify(data), callback);
     }
   }