From f5f33eaa6329204858cbba1da4a508eeb4afc2ca Mon Sep 17 00:00:00 2001 From: zdg Date: Thu, 5 Sep 2024 16:18:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?im=E6=97=A5=E5=BF=97=E7=BA=A7=E5=88=AB=20De?= =?UTF-8?q?bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/plugins/imChat/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/plugins/imChat/index.js b/src/renderer/src/plugins/imChat/index.js index 3b42935..dda4bfa 100644 --- a/src/renderer/src/plugins/imChat/index.js +++ b/src/renderer/src/plugins/imChat/index.js @@ -13,6 +13,7 @@ import IMListeners from './imLiseners' // im消息-监听器 const API = window.api // TIM生成签名 // import * as GenerateUserSig from './userSig' // 引入签名生成器 +const isDev = process.env.NODE_ENV == 'development' // 环境 export class ImChat { timChat // imChat对象 SDKAppID // sdkID @@ -48,10 +49,11 @@ export class ImChat { } // 设置配置 async setConfig() { + const log_level = TYPES.TIMLogLevel.kTIMLog_Error await this.timChat.TIMSetConfig({ // TIMSetConfigParam json_config: { // JSONCongfig - set_config_log_level: TYPES.TIMLogLevel.kTIMLog_Test, - set_config_callback_log_level: TYPES.TIMLogLevel.kTIMLog_Error, + set_config_log_level: log_level, + set_config_callback_log_level: log_level, set_config_is_log_output_console: true, // set_config_user_config: { // 用户配置 // user_config_is_read_receipt: true, // true表示要收已读回执事件 From 5ecba3fb62809293250b6db21d953973dd3404a1 Mon Sep 17 00:00:00 2001 From: zdg Date: Thu, 5 Sep 2024 16:28:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=BE=A4=E6=B2=A1?= =?UTF-8?q?=E6=B8=85=E9=99=A4=EF=BC=8C=E5=AF=BC=E8=87=B4=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=BE=A4?= 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 2af576d..4e65bd0 100644 --- a/src/renderer/src/views/tool/sphere.vue +++ b/src/renderer/src/views/tool/sphere.vue @@ -95,7 +95,7 @@ const getClassInfo = async () => { const { data } = await classManageApi.getClassInfo(classObj.id) classObj.data = data // 群id - let timGroupId = data?.ex3 || '@TGS#36AICW6O6' + let timGroupId = data?.ex3 || '' console.log('获取群ID:', timGroupId) const chat = await imChatRef.value?.initImChat(timGroupId) // 初始化im-chat if (!timGroupId) timGroupId = chat?.timGroupId