-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
获取所有群 #1020
Comments
This works as expect. Because web wechat cannot get all groups in your wechat What I did now like this: async function initRoom() {
console.log('begin to initRoom!')
const roomList = await Room.findAll()
if (roomList.length < MAX_GROUP) {
console.warn(`room num not ready. retry after 10 seconds. room num: ${roomList.length}`)
setTimeout(initRoom, 10000)
return
}
return roomList
} |
谢谢了,如果这样做的话,我就需要改一下业务流程了. |
@lijirui MAX_GROUP是多少? |
|
This feature might be able to be enhanced by the New Puppets. See: #1167 |
Close this issue due to inactivated for 60 days. |
Room.findAll() 获取所有群不稳定,有多有少.
The text was updated successfully, but these errors were encountered: