mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
移除apps插件非必要return false,拦截指令向后传递 #138
This commit is contained in:
parent
3273f256fc
commit
9d676fa70a
17 changed files with 82 additions and 173 deletions
|
|
@ -80,7 +80,6 @@ export class Wiki extends ZZZPlugin {
|
|||
!isSkillLevelLegal('ChainLevel', ChainLevel) ||
|
||||
!isSkillLevelLegal('CoreLevel', CoreLevel)
|
||||
) {
|
||||
await this.reply(`${charname}天赋等级参数不合法`);
|
||||
return false;
|
||||
}
|
||||
const charData = await getHakushCharacterData(charname);
|
||||
|
|
@ -108,8 +107,7 @@ export class Wiki extends ZZZPlugin {
|
|||
const charData = await getHakushCharacterData(charname);
|
||||
const cinemaData = charData?.Talent;
|
||||
if (!cinemaData) {
|
||||
await this.reply(`未找到${charname}的数据`);
|
||||
return false;
|
||||
return this.reply(`未找到${charname}的数据`);
|
||||
}
|
||||
await charData.get_assets();
|
||||
const finalData = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue