diff --git a/docs/social-media.md b/docs/social-media.md index 7c7989e1d..e7280fc7b 100644 --- a/docs/social-media.md +++ b/docs/social-media.md @@ -852,7 +852,7 @@ YouTube 官方亦有提供频道 RSS,形如 + | 键 | 含义 | 值 | 默认值 | | -------- | ----------------------------------- | ---------------------- | ------- | diff --git a/lib/v2/douyin/user.js b/lib/v2/douyin/user.js index d954f8dbe..01fffe684 100644 --- a/lib/v2/douyin/user.js +++ b/lib/v2/douyin/user.js @@ -49,6 +49,9 @@ const getOriginAvatar = (url) => module.exports = async (ctx) => { const uid = ctx.params.uid; + if (!uid.startsWith('MS4wLjABAAAA')) { + throw Error('Invalid UID. UID should start with MS4wLjABAAAA.'); + } const routeParams = Object.fromEntries(new URLSearchParams(ctx.params.routeParams)); const embed = fallback(undefined, queryToBoolean(routeParams.embed), false); // embed video const iframe = fallback(undefined, queryToBoolean(routeParams.iframe), false); // embed video in iframe