修复get.bordergroup传入字符串写法失效的bug

This commit is contained in:
mengxinzxz 2024-04-26 17:07:02 +08:00
parent f5c34383e1
commit 00ced85c5e
1 changed files with 1 additions and 0 deletions

View File

@ -645,6 +645,7 @@ export class Get {
return "暂无武将介绍"; return "暂无武将介绍";
} }
bordergroup(info, raw) { bordergroup(info, raw) {
if(typeof info == 'string') info = get.character(info);
if(info.groupBorder) return info.groupBorder; if(info.groupBorder) return info.groupBorder;
return raw ? "" : info.group || ""; return raw ? "" : info.group || "";
} }