From ea6ff19dc4e710c74fa2aa88fcce70b9a09b2138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8C=8C?= Date: Thu, 6 Jul 2023 09:52:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/adapter/GSUIDCore.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/adapter/GSUIDCore.js b/plugins/adapter/GSUIDCore.js index 8291b05..2cb0cc6 100644 --- a/plugins/adapter/GSUIDCore.js +++ b/plugins/adapter/GSUIDCore.js @@ -81,26 +81,28 @@ Bot.adapter.push(new class GSUIDCoreAdapter { sendFriendMsg(data, msg) { const content = this.makeMsg(msg) logger.info(`${logger.blue(`[${data.self_id}]`)} 发送好友消息:[${data.user_id}] ${this.makeLog(content)}`) - return data.sendApi({ + data.sendApi({ bot_id: data.bot.bot_id, bot_self_id: data.bot.bot_self_id, target_type: "direct", target_id: data.user_id, content, }) + return { message_id: Date.now() } } sendGroupMsg(data, msg) { const target = data.group_id.split("-") const content = this.makeMsg(msg) logger.info(`${logger.blue(`[${data.self_id}]`)} 发送群消息:[${data.group_id}] ${this.makeLog(content)}`) - return data.sendApi({ + data.sendApi({ bot_id: data.bot.bot_id, bot_self_id: data.bot.bot_self_id, target_type: target[0], target_id: target[1], content, }) + return { message_id: Date.now() } } pickFriend(data, user_id) {