From 147c6b1947f0ff5336bbf37f90fe8fb008b874d0 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 2 Oct 2026 18:20:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(sites):=20=E4=B8=8D=E5=86=8D=E5=8D=95?= =?UTF-8?q?=E7=8B=AC=E6=98=BE=E7=A4=BA=20VIP=20=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 等级里已经体现 VIP,各站 vip 判定也不一致(同为 VIP 等级,有的站是 true、有的是 null)。 卡片、列表、登录结果、站点概况去掉 VIP 显示,数据字段保留。 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++++ apps/web/app/components/sites/site-card.tsx | 2 -- apps/web/app/components/sites/site-dialogs.tsx | 5 ++--- apps/web/app/components/sites/site-overview.tsx | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 422b87ee..ca0b8452 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ## [Unreleased] +### 修复 +- 整理后自动刮削照 MP:按作品目录刮(剧集根目录 tvshow.nfo / 海报 / 季海报、季目录 season.nfo 照常初始化),集只刮本次整理的文件;同一目录还没开始的刮削合成一批。此前原地入库逐文件刮,剧集根目录与季目录没有元数据。迁移 `0062_scrape_record_videos`,刮削记录新增 `videos`。 +- 站点卡片、列表、登录结果、站点概况不再单独显示 VIP 标签(等级里已经体现,各站 VIP 判定也不一致)。 + ### 工程 - `deno task test:all`:逐包跑完再汇总,连不上测试库直接失败(不再让数据库用例静默跳过);`deno task ci` 改用它。 - `deno task dev:up`:起开发库并迁移到最新。开发 API 端口改为 4390(4380 留给本机部署版)。 diff --git a/apps/web/app/components/sites/site-card.tsx b/apps/web/app/components/sites/site-card.tsx index 4d59552d..c33b78cc 100644 --- a/apps/web/app/components/sites/site-card.tsx +++ b/apps/web/app/components/sites/site-card.tsx @@ -318,7 +318,6 @@ function AccountSiteCard({ site, checks, onDialog }: Props) {
{site.kind && site.kind !== "pt" ? {kindLabel(site.kind)} : null} - {u?.vip ? VIP : null} {circuit ? {circuit} : null} {cf ? ( cf.takeover ? ( @@ -470,7 +469,6 @@ export function SiteTable({ cell: (s) => (
- {dataAccount(s.accounts)?.userData?.vip ? VIP : null}
), }, diff --git a/apps/web/app/components/sites/site-dialogs.tsx b/apps/web/app/components/sites/site-dialogs.tsx index 7a00f2dd..499341a8 100644 --- a/apps/web/app/components/sites/site-dialogs.tsx +++ b/apps/web/app/components/sites/site-dialogs.tsx @@ -134,9 +134,8 @@ export function LoginResultView({ {result.userData ? ( - {[result.userData.username, result.userData.userLevel].filter(Boolean).join(" · ")} - {result.userData.vip ? " · VIP" : ""} · 上传 {bytes(result.userData.upload)} · 分享率{" "} - {ratioText(result.userData)} + {[result.userData.username, result.userData.userLevel].filter(Boolean).join(" · ")} · 上传{" "} + {bytes(result.userData.upload)} · 分享率 {ratioText(result.userData)} ) : ( {result.message ?? "没有取到用户数据"} diff --git a/apps/web/app/components/sites/site-overview.tsx b/apps/web/app/components/sites/site-overview.tsx index 59d0cb84..c25aac7a 100644 --- a/apps/web/app/components/sites/site-overview.tsx +++ b/apps/web/app/components/sites/site-overview.tsx @@ -125,7 +125,7 @@ function AccountSiteOverview({ site }: { site: SiteListItem }) { - +