Repository navigation
fix: 修正模型广场视频按秒计费标签与单位 - #826
Merged
Merged
Conversation
ranxi2001
marked this pull request as ready for review
November 13, 2026 05:19
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决的问题与行为变化
billing_mode=video价卡把每秒单价标成「按次计费 / 次」,例如 480p$0.54被误读为每条视频的价格。关联记录与来源
production,固定修复前基线c424f8217da12cd4fb8d10aeaf1c4f2592c3f286;head:fix/issue825-video-pricing-unit。管理员新功能提示
复现与验收
PlazaModelPricingTable.vue,真实 zh/en dashboard 语言包,全部使用虚构模型与定价。billing_mode=video、per_request_price=0.54,另一个配置 480p0.54/ 720p1.08档位。frontend/src/components/modelPlaza/__tests__/PlazaModelPricingTable.video.spec.ts,真实组件 +createI18n,覆盖中英文基础价、专属折扣、独立倍率、分辨率档以及 image/request/token。现有PlazaModelPricingTable.spec.ts继续覆盖倍率零值、负值与 token 阶梯/缓存/分时等路径。远程执行通过,见下方原始日志与附件。协议、调度或传输改动补充
不适用;仅展示层文案,无端点、模型映射、请求、重试、流式、并发或持久状态改动。
实际验证
当前完成 head:
670f33b3facf7779be23779e19da50e783be4ab2;实现提交b9f74b6985fe7052805289f2de0ff5bb1a76edea。专项远程 CI 43340836869 的 regression / rendered 两个 job 均通过,原始 job 日志已回读。未执行本地动态验证。
git diff --check、git diff --cached --checkpnpm --dir frontend exec vitest run src/components/modelPlaza/__tests__/PlazaModelPricingTable.spec.ts src/components/modelPlaza/__tests__/PlazaModelPricingTable.video.spec.ts src/i18n/__tests__/localeKeyCompleteness.spec.ts --reporter=verbosepnpm --dir frontend exec vitest run src/components/modelPlaza/__tests__/PlazaModelPricingTable.video.spec.ts --reporter=verbose --reporter=json --outputFile="$EVIDENCE_DIR/red.json"node .github/scripts/issue825-video-pricing-screenshot.mjsmake test-frontend(pnpm --dir frontend run lint:check/pnpm --dir frontend run typecheck/ 关键 Vitest)pnpm --dir frontend run buildvue-tsc -b、Vite 全量应用生产构建通过(存在 >500kB chunk 提示);同 job 的嵌入式 Go 构建也成功已渲染截图归档存于 GitHub Actions 构建产物(下载 PNG、manifest、render.log;非 PR 原生图片附件),未提交 PNG。已下载回读 manifest 并核对 8 张图片 SHA256,目视检查中文前后及英文暗色结果。
PlazaModelPricingTable,中文,亮色 / 暗色before-zh-light.png/before-zh-dark.pngafter-zh-light.png/after-zh-dark.pngbefore-en-light.png/before-en-dark.pngafter-en-light.png/after-en-dark.png前图固定
c424f8217da12cd4fb8d10aeaf1c4f2592c3f286,后图固定当前 head。每张图均展示基础视频价、480p/720p 档和 image/request/token 对照,分别使用分组 0.5 倍、用户 0.25 倍、视频独立 2 倍/图片独立 3 倍三组虚构 props;前后金额一致,仅视频标签和单位变为秒。组件预览不代表整页导航、真实 API、生产业务或后端扣费验收;图片目前仅以 Actions artifact 归档,需下载查看;本轮已补充并逐字节回读验证 PR 原生图片附件,见文末前后对比。期间 production 前进至
ff23a988f4c5825ec06a7efb4e0f16f2b1e65ced(#824 后端 409 修复),静态对比无本次文件重叠。完整 CI 和最终静态整合已由父级核对,无冲突;Refs #825,ready/merge前再次固定 head。兼容性与运行影响
billing_mode=video,只修正显示文案。文档与用户可见变化
中文与英文视频价卡明确按秒计费;没有新增设置或使用方式。PR 合并、发布与生产部署均未执行。
Agent 使用声明
gpt-6.1-sol,推理强度ultra。ci_evidence:只读查找现有远程 CI 与截图架构,静态复核测试、workflow 与渲染脚本;模型gpt-6.1-sol,推理强度ultra。主 Agent 为唯一实现 writer。turn_context元数据;fast 仅 requested,metadata 未暴露实际 delivered tier,不能宣称已交付 fast。gpt-6.1-sol,推理强度未知(未暴露配置)。b9f74b6985fe7052805289f2de0ff5bb1a76edea源码审查 CLEAR(不替代动态/合并门禁);模型gpt-6.1-sol,推理强度未知(子会话未提供)。提交前自查
本轮最终验收与原生前后截图(替代上文旧 pending)
冻结 head
670f33b3facf7779be23779e19da50e783be4ab2。全部 63 个 check-run 已结束:30 success、33 条件 skipped,传统 statuses 为 0;24 个 workflow 均结束,无失败或取消。此前专项 58 tests GREEN、10 个视频场景预期 RED / 6 个非视频对照 PASS、实际 Vue/Tailwind CSS 截图及 frontend 完整构建证据均保留。父级亲自复核生产两函数分支与两语言文案,无价格计算或后端行为更改;先前独立静态审查 CLEAR 持续适用,最终 harness 只补 CI/证据。以下来自同一已归档真实组件渲染,前图
c424f8217da12cd4fb8d10aeaf1c4f2592c3f286,后图当前 head,沿用原 capture provenance。全部是虚构 props,无 API/生产/真实扣费验证。父级本轮目视检查无可见敏感内容,并通过认证 gh 上传原生附件、下载逐字节比对原 PNG,未将 PNG 提交源码。混合价格表统一 token 表头属于既有展示边界,本次不扩大范围;视频行内基础价/分辨率单位已正确改为秒。源码合并不代表已经上线。