From be8a522394e0a16124dcee9a99a8d7ee2f7619a7 Mon Sep 17 00:00:00 2001 From: takayama Date: Tue, 1 Sep 2020 08:20:06 +0900 Subject: [PATCH 1/2] =?UTF-8?q?block=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/outgoing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/outgoing.js b/lib/outgoing.js index 15189a68..202337dc 100644 --- a/lib/outgoing.js +++ b/lib/outgoing.js @@ -655,7 +655,7 @@ function buildFriendRequestRequestPacket(flag, approve = true, block = false, c) subSrcId: 7, actionInfo: { type: approve?2:3, - blacklist: block + blacklist: block?true:false }, }); return commonUNI(c, CMD.FRIEND_REQ_ACT, body); @@ -673,7 +673,7 @@ function buildGroupRequestRequestPacket(flag, approve = true, reason = "", block actionInfo: { type: approve?11:12, groupCode: group_id, - blacklist: block, + blacklist: block?true:false, msg: reason, sig: BUF0, }, From 61823955d5ecb0ba6b39a41a90cb28232f11e046 Mon Sep 17 00:00:00 2001 From: takayama Date: Tue, 1 Sep 2020 09:10:12 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BE=A4=E5=A4=AA=E5=A4=9A=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=8A=A0=E8=BD=BD=E8=BF=87=E5=BF=AB=E5=AF=BC?= =?UTF-8?q?=E8=87=B4write=20ECONNRESET?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.js | 6 +++--- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client.js b/client.js index bf920eb8..5ef7f33e 100644 --- a/client.js +++ b/client.js @@ -288,10 +288,10 @@ class AndroidClient extends Client { this.getFriendList(true), this.getGroupList(true) ]); this.logger.info(`加载了${this.friend_list.size}个好友,${this.group_list.size}个群。`); - this.group_list.forEach((v, k)=>{ - this.getGroupMemberList(k, true); - }); event.emit(this, "system.online"); + for (let k of this.group_list.keys()) { + await this.getGroupMemberList(k, true); + } }); } diff --git a/package-lock.json b/package-lock.json index 8567959d..2033d019 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "oicq", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8548f639..c6b9999b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oicq", - "version": "1.0.2", + "version": "1.0.3", "description": "QQ protocol!", "main": "client.js", "scripts": {