From b8a5d29aaeff05c0c3ac380f5922750d7f584cab Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Thu, 1 Sep 2022 02:35:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9V3=E4=B8=8B=E7=9A=84MysInfo=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF=E5=A2=9E=E5=8A=A0=E9=A2=91=E5=BA=A6?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapter/mys.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/adapter/mys.js b/adapter/mys.js index bb2897e8..365508e5 100644 --- a/adapter/mys.js +++ b/adapter/mys.js @@ -47,7 +47,18 @@ class Mys { if (!this.MysApi) { return false } + let e = this.e + // 防止错误信息刷屏 + e._original_reply = e._original_reply || e.reply + e.reply = function (msg) { + if (!e._isReplyed) { + e._isReplyed = true + e.reply = e._original_reply + return e._original_reply(msg) + } + } let ret = await MysInfo.get(this.e, api, data) + e.reply = e._original_reply if (!ret) { return false }