puppet-supports icon indicating copy to clipboard operation
puppet-supports copied to clipboard

[BUG]WorkPro:findAll如何不获取到群成员或者对其有区分

Open 233312-ship-it opened this issue 1 year ago • 1 comments

findAll 全部成员都获取到了

findAll如何不获取到群成员或者对其有区分

233312-ship-it avatar Sep 05 '24 09:09 233312-ship-it

const allContacts = await wechat.Contact.findAll(); const externalContacts = allContacts.filter(c => c.payload?.friend === true && c.payload?.type === 1 && !c.coworker()); 这个是获取到企微外部联系人的,获取到内部的把后面的判断去掉就好了

IQZZ020501 avatar Sep 06 '24 06:09 IQZZ020501