From 9e7a614ded83317abcc18e176dffa1c5e0592c58 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Thu, 19 Oct 2023 22:07:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8D=E7=9F=A5?= =?UTF-8?q?=E9=81=93=E5=95=A5=E6=97=B6=E5=80=99=E4=B8=8D=E5=B0=8F=E5=BF=83?= =?UTF-8?q?=E7=A2=B0=E5=88=B0=E9=94=AE=E7=9B=98=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/tools/EditCardTool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/tools/EditCardTool.js b/utils/tools/EditCardTool.js index a74e667..597eb5e 100644 --- a/utils/tools/EditCardTool.js +++ b/utils/tools/EditCardTool.js @@ -28,7 +28,7 @@ export class EditCardTool extends AbstractTool { qq = isNaN(qq) || !qq ? e.sender.user_id : parseInt(qq.trim()) groupId = isNaN(groupId) || !groupId ? e.group_id : parseInt(groupId.trim()) - let group = await e.bot.(groupId) + let group = await e.bot.pickGroup(groupId) try { let mm = await group.getMemberMap() if (!mm.has(qq)) { From dc19009e2a6918a3d83ace8abc99a55e24632d0f Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 21 Oct 2023 16:06:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20getUin=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/uploadRecord.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/uploadRecord.js b/utils/uploadRecord.js index 98d650b..f689537 100644 --- a/utils/uploadRecord.js +++ b/utils/uploadRecord.js @@ -139,7 +139,7 @@ async function uploadRecord (recordUrl, ttsMode = 'vits-uma-genshin-honkai') { 2: 3, 5: { 1: Contactable.target, - 2: getUin(e), + 2: getUin(), 3: 0, 4: hash, 5: buf.length, @@ -183,7 +183,7 @@ async function uploadRecord (recordUrl, ttsMode = 'vits-uma-genshin-honkai') { const fid = rsp[11].toBuffer() const b = core.pb.encode({ 1: 4, - 2: Bot.uin, + 2: getUin(), 3: fid, 4: hash, 5: hash.toString('hex') + '.amr',