feat: 引入平台标签系统,优化平台信息及错误日志

- 引入平台标签系统,提供详细的平台特性说明。
- 重构搜索结果初始化,避免平台名称重复定义。
- 修正核心搜索错误日志,确保正确记录平台名称。
- 移除两个Galgame平台:TianYouErCiYuan(收费)和YingZhiGuang(网站转型)。
- 更新部分平台的颜色、魔法属性和标签信息。
This commit is contained in:
Jurangren
2025-10-06 22:09:13 +08:00
parent 325f11fd24
commit 4d93d1b3e1
37 changed files with 44 additions and 161 deletions

View File

@@ -2,13 +2,13 @@
export interface SearchResultItem {
name: string;
url: string;
tags?: string[];
}
// 平台搜索的返回值
export interface PlatformSearchResult {
items: SearchResultItem[];
count: number;
name: string;
error?: string;
}
@@ -16,6 +16,7 @@ export interface PlatformSearchResult {
export interface Platform {
name: string;
color: string;
tags: string[];
magic: boolean;
search: (game: string, ...args: any[]) => Promise<PlatformSearchResult>;
}
@@ -24,6 +25,7 @@ export interface Platform {
export interface StreamResult {
name: string;
color: string;
tags: string[];
items: SearchResultItem[];
error?: string;
}