From f63378ebd4ea0397f486da9c53d247680d64fd3b Mon Sep 17 00:00:00 2001 From: linkeyu Date: Mon, 27 Jul 2026 14:18:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BA=AF=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=E6=98=8E=E7=BB=86=E7=B1=BB=E5=9E=8B=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=BC=BA=E5=A4=B1=20(#86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 问题 impressionOnlyDetail 返回 AdRevenueDetailRow 时缺少 AdRevenueRecord 的必填字段 adn 和 slot_id,导致 next build 在类型检查阶段失败。 ## 修复 - 从 AdRevenueRow 透传 adn - 从 AdRevenueRow 透传 slot_id - 保留 source_adn 的现有展示口径 ## 验证 - npm run build 通过 - TypeScript 类型检查通过 - 生产静态页面生成通过 --------- Co-authored-by: linkeyu <798648091@qq.com> Reviewed-on: https://gitea.shaguabijia.com/WonderableAI/shaguabijia-admin-web/pulls/86 Co-authored-by: linkeyu Co-committed-by: linkeyu --- src/app/(main)/ad-revenue-report/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/(main)/ad-revenue-report/page.tsx b/src/app/(main)/ad-revenue-report/page.tsx index 74e3d05..2835a68 100644 --- a/src/app/(main)/ad-revenue-report/page.tsx +++ b/src/app/(main)/ad-revenue-report/page.tsx @@ -242,6 +242,8 @@ function impressionOnlyDetail(row: AdRevenueRow): AdRevenueDetailRow { expected_coin: 0, actual_coin: 0, matched: true, + adn: row.adn, + slot_id: row.slot_id, source_adn: row.adn, is_impression_only: true, };