mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-07 08:42:49 +08:00
🐛 修复特定情况下的数据缺失导致的异常
This commit is contained in:
@@ -439,7 +439,11 @@ function getPageItems(): TGApp.Plugins.Mys.Post.FullData[] {
|
||||
card.push(JSON.parse(post.content));
|
||||
} catch (e) {
|
||||
TGLogger.Error("[PostCollect] getPageItems");
|
||||
TGLogger.Error(<string>e);
|
||||
if (typeof e === "string") {
|
||||
TGLogger.Error(e);
|
||||
} else if (e instanceof Error) {
|
||||
TGLogger.Error(e.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
return card;
|
||||
|
||||
Reference in New Issue
Block a user