From f76029c2d9b2810735b6ffe6f8eefb6a6bf90747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Fri, 5 Sep 2025 15:14:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E7=BE=A4=E7=BB=84?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=88=B0=E5=BE=AE=E4=BF=A1=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?ID=E5=8E=BB=E9=87=8D=E9=80=BB=E8=BE=91=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cunkebao/src/pages/pc/ckbox/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cunkebao/src/pages/pc/ckbox/main.ts b/Cunkebao/src/pages/pc/ckbox/main.ts index 3a75ec00..19f6cf62 100644 --- a/Cunkebao/src/pages/pc/ckbox/main.ts +++ b/Cunkebao/src/pages/pc/ckbox/main.ts @@ -233,6 +233,13 @@ export const getUniqueWechatAccountIds = ( } }); + // 遍历联系人列表,将每个wechatAccountId添加到Set中 + groupList.forEach(group => { + if (group && group.wechatAccountId) { + uniqueAccountIdsSet.add(group.wechatAccountId); + } + }); + // 将Set转换为数组并返回 return Array.from(uniqueAccountIdsSet); };