修复纯展示广告明细类型字段缺失 (#86)
## 问题 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: #86 Co-authored-by: linkeyu <linkeyu@wonderable.ai> Co-committed-by: linkeyu <linkeyu@wonderable.ai>
This commit was merged in pull request #86.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user