wkw před 1 měsícem
rodič
revize
fbe32350ac

+ 10 - 0
capacitor.config.ts

@@ -10,6 +10,8 @@ console.log("import.meta.env=", process.env.VITE_DAPP_BUILD)
 let config: CapacitorConfig = {
   appId: 'com.acc.app',
   appName: 'Local Block',
+  // appId: 'com.im.app',
+  // appName: 'Im Block',
   webDir: 'dist',
   // 插件配置
   plugins: {
@@ -42,12 +44,20 @@ let config: CapacitorConfig = {
     useLegacyBridge: true,       // 使用旧版桥接(兼容性)
 
     // 签名证书配置(建议通过环境变量注入敏感信息)
+    // 钱包证书
     buildOptions: {
       keystorePath: 'f62.keystore',
       keystoreAlias: 'f62', //  // 生成时指定的别名
       keystorePassword: 'LkSvN1Ys',  // 从环境变量读取
       keystoreAliasPassword: 'LkSvN1Ys'
     }
+    // IM证书
+    // buildOptions: {
+    //   keystorePath: '1.jks',
+    //   keystoreAlias: 'f62', //  // 生成时指定的别名
+    //   keystorePassword: 'biu',  // 从环境变量读取
+    //   keystoreAliasPassword: '12345678'
+    // }
   }
 };
 // 开发服务器配置(热更新用)

+ 1 - 0
src/common/constant/msgType.js

@@ -45,6 +45,7 @@ export const MESSAGE_CC_GROUP = 217; // 群@功能
 export const MESSAGE_NOTICE_GROUP = 218; // 群公告
 export const MESSAGE_REVOKE_GROUP = 219; // 群消息撤回
 export const MESSAGE_STICKY_GROUP = 220; // 群消息置顶
+export const MESSAGE_NICKNAME_GROUP = 221; // 群个人昵称修改
 
 // 发送的系统消息
 export const MSG_SYSTEM_GROUP = [

+ 5 - 1
src/stores/modules/webSocketStore.js

@@ -589,7 +589,7 @@ export const useWebSocketStore = defineStore("webSocketStore", {
     },
     // 更新会话列表消息
     updateSessionNewMessage(message, sessionId, msg = null) { 
-      // console.log("更新会话列表消息:", message, sessionId, msg);
+      console.log("更新会话列表消息:", message, sessionId, msg);
 
       // 过滤接收的系统消息
       if (MsgType.MSG_SYSTEM_GROUP.includes(message.messageType)){
@@ -829,6 +829,10 @@ export const useWebSocketStore = defineStore("webSocketStore", {
           this.isassign = this.groupMembersList[message.from].filter(val => ccArr.includes(val.userId + '')).find(val => val.uuid == message.to)
         }
       } 
+      // 处理群个人昵称
+      if (message.messageType == MsgType.MESSAGE_NICKNAME_GROUP){
+        
+      }
     },
 
     // 语音视频通知

+ 3 - 3
src/updater/update.json

@@ -1,7 +1,7 @@
 {
-  "version": "2.0.25",
-  "releaseDate": "2025-09-04 05:36:39",
-  "checksum": "d49b7eea88bb5c9ff95b11259e17b5fe18445d33b3f2a391809e5ba16961cea6",
+  "version": "2.0.32",
+  "releaseDate": "2025-09-05 02:59:37",
+  "checksum": "53c9677c09788b49c7801fea2c7cfc6544156ebc16b23219a9192f6316764c31",
   "minBinaryVersion": "2.0.0",
   "mandatory": false,
   "upDataDescription": "✨修正一些錯誤。。。。!!!"

+ 1 - 0
src/views/im/chat/index.vue

@@ -988,6 +988,7 @@ const goDetail = () =>{
       display: flex;
       overflow: hidden;
       justify-content: center;
+      align-items: center;
     }
   }
   .chat-list {

+ 22 - 11
src/views/im/detail/index.vue

@@ -271,7 +271,7 @@ const popConfirm = () => {
             // 修改群个人昵称接口
             funSelectEditnickname({
                 nickname: newName.value,
-                groupId: wsStore.toUserInfo.id
+                groupId: wsStore.toUserInfo.groupId
             });
             information.nickname = newName.value;
             // 同步更新 groupMembers 和 groupMembersNum(因为你两个地方用到)
@@ -292,7 +292,7 @@ const popConfirm = () => {
         }
     }, 1000);
 };
-// 修改群聊名称接口
+// 修改群信息接口
 const funSelectGroupName = async params => {
     try {
         const res = await selectGroupName(wsStore.uuid, params);
@@ -384,19 +384,30 @@ const popExit = async () => {
 };
 // 消息免打扰
 const changeDisturb = async () => {
-    const res = await setMessageDisturb(wsStore.toUserInfo.uuid,{friendUuid:walletStore.account});
-    if(res.code == 200){
-        wsStore.toUserInfo.slience = res.data;
-        wsStore.updateSessionNewMessage({slience: res.data}, wsStore.toUserInfo.uuid);
+    try {
+        const res = await setMessageDisturb(wsStore.toUserInfo.uuid,{friendUuid:walletStore.account});
+        if(res.code == 200){
+            wsStore.toUserInfo.slience = res.data;
+            wsStore.updateSessionNewMessage({slience: res.data}, wsStore.toUserInfo.uuid);
+        }else{
+            showToast('设置失败');
+        }
+    } catch (error) {
+        showToast('设置失败');
     }
-    console.log(res)
 }
 // 置顶聊天
 const changeStory = async () => {
-    const res = await stickChat({friendUuid:walletStore.account,uuid:wsStore.toUserInfo.uuid});
-    if(res.code == 200){
-        wsStore.toUserInfo.stick = res.data;
-        wsStore.updateSessionNewMessage({stick: res.data}, wsStore.toUserInfo.uuid);
+    try {
+        const res = await stickChat({friendUuid:walletStore.account,uuid:wsStore.toUserInfo.uuid});
+        if(res.code == 200){
+            wsStore.toUserInfo.stick = res.data;
+            wsStore.updateSessionNewMessage({stick: res.data}, wsStore.toUserInfo.uuid);
+        }else{
+            showToast('设置失败');
+        }
+    } catch (error) {
+        showToast('设置失败');
     }
 }