From 8d7b457a9a6cb16cfd7c92ec9ce1016e130631c6 Mon Sep 17 00:00:00 2001 From: Rrrrrrray <28804884+Rrrrrrray@users.noreply.github.com> Date: Fri, 12 May 2023 19:46:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=98=9F=E9=93=81=E6=8A=BD?= =?UTF-8?q?=E5=8D=A1=E9=93=BE=E6=8E=A5=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=AB?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugins/loader.js | 3 ++- plugins/genshin/model/gachaLog.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/plugins/loader.js b/lib/plugins/loader.js index e7865b2..f8393ab 100644 --- a/lib/plugins/loader.js +++ b/lib/plugins/loader.js @@ -359,7 +359,8 @@ class PluginsLoader { // 判断是否是星铁命令,若是星铁命令则标准化处理 // e.isSr = true,且命令标准化为 #星铁 开头 let srReg = /^#?(\*|星铁|星轨|穹轨|星穹|崩铁|星穹铁道|崩坏星穹铁道|铁道)+/ - if (srReg.test(msg)) { + let gclink = /\/common\//.test(msg) + if (srReg.test(msg) || gclink) { console.log('sr test true') e.isSr = true msg = msg.replace(srReg, '#星铁') diff --git a/plugins/genshin/model/gachaLog.js b/plugins/genshin/model/gachaLog.js index 77fa0b7..c64e4a6 100644 --- a/plugins/genshin/model/gachaLog.js +++ b/plugins/genshin/model/gachaLog.js @@ -55,7 +55,7 @@ export default class GachaLog extends base { if (i <= 1) await common.sleep(500) } - await this.e.reply(`抽卡记录更新完成,您还可回复\n【#${this?.e?.isSr?'光锥':'武器'}记录】统计${this?.e?.isSr?'光锥':'武器'}池数据\n【#角色统计】按卡池统计数据\n【#导出记录】导出记录数据`) + await this.e.reply(`抽卡记录更新完成,您还可回复\n【#${this?.e?.isSr?'星铁光锥':'武器'}记录】统计${this?.e?.isSr?'星铁光锥':'武器'}池数据\n【#${this?.e?.isSr?'星铁':''}角色统计】按卡池统计数据\n【#导出记录】导出记录数据`) this.isLogUrl = true