注释
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
import type { PlatformConfig } from '@/types';
|
||||
|
||||
export const PLATFORM_CONFIGS: PlatformConfig[] = [
|
||||
@@ -123,7 +123,9 @@ export const PLATFORM_CONFIGS: PlatformConfig[] = [
|
||||
},
|
||||
]
|
||||
|
||||
/** 根据平台 ID 返回对应的平台抓取配置。 */
|
||||
/**
|
||||
* 根据平台 ID 返回对应的平台抓取配置。
|
||||
*/
|
||||
export function getPlatformById(platformId: string) {
|
||||
return PLATFORM_CONFIGS.find((item) => item.id === platformId) ?? null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user