mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-19 04:29:45 +08:00
👔 调整判断逻辑
This commit is contained in:
@@ -95,8 +95,9 @@ function getTpName(tp: TGApp.BBS.SctPost.Base): Component {
|
||||
if (typeof tp.insert === "string") return TpText;
|
||||
// game_user_info属于backup_text的一种,必须放在backup_text判断的前面
|
||||
if ("game_user_info" in tp.insert) return TpUid;
|
||||
if ("backup_text" in tp.insert) return TpBackupText;
|
||||
// custom_emoticon属于backup_text的一种,必须放在backup_text判断的前面
|
||||
if ("custom_emoticon" in tp.insert) return TpEmoticon;
|
||||
if ("backup_text" in tp.insert) return TpBackupText;
|
||||
if ("divider" in tp.insert) return TpDivider;
|
||||
if ("image" in tp.insert) return TpImage;
|
||||
if ("link_card" in tp.insert) return TpLinkCard;
|
||||
|
||||
Reference in New Issue
Block a user