From d40873d1985f07983a53b7c95f2a09d4e5330060 Mon Sep 17 00:00:00 2001 From: zdg Date: Thu, 17 Oct 2024 09:55:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?ppt=E4=B8=8A=E8=AF=BE=E5=8F=91=E9=80=81?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/tool/sphere.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/views/tool/sphere.vue b/src/renderer/src/views/tool/sphere.vue index d14e857..f6a78d6 100644 --- a/src/renderer/src/views/tool/sphere.vue +++ b/src/renderer/src/views/tool/sphere.vue @@ -158,7 +158,7 @@ const touchChange = (e) => { const chatChange = (type, data, ...args) => { if (type == 'createGroup') { // 创建群-监听 console.log('创建群:', data) - !!data && classManageApi.startClass(classObj.id, data) + // !!data && classManageApi.startClass(classObj.id, data) } else if (type == 'msg') { // im-chat 消息监听 if (!data) return // 没有msg数据 message_msg_id const msgId = (args||[])[0].message_msg_id -- 2.44.0.windows.1 From d7f17c253dde9424807c44233ffb4b9c5bd5944f Mon Sep 17 00:00:00 2001 From: zdg Date: Fri, 18 Oct 2024 16:09:55 +0800 Subject: [PATCH 2/3] =?UTF-8?q?im=20=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/plugins/imChat/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/plugins/imChat/index.js b/src/renderer/src/plugins/imChat/index.js index 83f007f..bb2250b 100644 --- a/src/renderer/src/plugins/imChat/index.js +++ b/src/renderer/src/plugins/imChat/index.js @@ -285,8 +285,11 @@ export class ImChat { // callback: (data) => {} } // console.log('发送消息', option) - this.setConsole('%cim-chat: 发送消息', option) - return this.timChat.TIMMsgSendMessageV2(option) + this.setConsole('%cim-chat: 发送消息【req】', conv_id, msg) + return this.timChat.TIMMsgSendMessageV2(option).then(res => { + this.setConsole('%cim-chat: 发送消息【res】', JSON.stringify(res)) + return res + }) } /** * @description 发送群消息 -- 2.44.0.windows.1 From 548442f278f0bae7ce00f978fd4cdba3235f7236 Mon Sep 17 00:00:00 2001 From: zdg Date: Fri, 18 Oct 2024 17:06:08 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89im=E6=B6=88=E6=81=AF=E5=8F=91?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/tool/components/homework.vue | 2 +- src/renderer/src/views/tool/components/imChat.vue | 2 +- src/renderer/src/views/tool/sphere.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/views/tool/components/homework.vue b/src/renderer/src/views/tool/components/homework.vue index b5af42b..cdd303a 100644 --- a/src/renderer/src/views/tool/components/homework.vue +++ b/src/renderer/src/views/tool/components/homework.vue @@ -128,7 +128,7 @@ const closeHomework = async() => { const successHomework = (data)=>{ // console.log('推送成功', data) // 发送im消息-推送作业(app|平板) - ipcMsgInvoke('im-chat:msg', data, MsgEnum.HEADS.MSG_0016) + // ipcMsgInvoke('im-chat:msg', data, MsgEnum.HEADS.MSG_0016) } // 章节目录change const changeChapter = async (data)=>{ diff --git a/src/renderer/src/views/tool/components/imChat.vue b/src/renderer/src/views/tool/components/imChat.vue index f69c90a..637254c 100644 --- a/src/renderer/src/views/tool/components/imChat.vue +++ b/src/renderer/src/views/tool/components/imChat.vue @@ -12,7 +12,7 @@ const props = defineProps({ }) const imChatObj = reactive({imChat:null}) onMounted(() => { - ipcMainHandle() // 绑定-监听ipcMain im相关消息 + // ipcMainHandle() // 绑定-监听ipcMain im相关消息 }) // 初始化 im-chat const initImChat = async (timGroupId) => { diff --git a/src/renderer/src/views/tool/sphere.vue b/src/renderer/src/views/tool/sphere.vue index f6a78d6..452a63c 100644 --- a/src/renderer/src/views/tool/sphere.vue +++ b/src/renderer/src/views/tool/sphere.vue @@ -105,7 +105,7 @@ const getClassInfo = async () => { const chat = await imChatRef.value?.initImChat(timGroupId) // 初始化im-chat if (!timGroupId) timGroupId = chat?.timGroupId if (!timGroupId) return ElMessage.error('房间创建-失败') - classManageApi.startClass(classObj.id, timGroupId) // 开始上课 + if (data.status != '上课中') classManageApi.startClass(classObj.id, timGroupId) // 开始上课 } // 切换tab-change const tabChange = (val) => { -- 2.44.0.windows.1