2026-09-20 10:32:09 +08:00

29 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 调用示例
示例只说明参数怎么传。执行时用用户本次给的值,不要把下面的地址、日期、目录和 JSON 当成默认值。
## 单条
```text
platform_url: https://haoxian.cemeta.cn/geo-monitor?batchDate=2026-09-17&reportType=monitor&level=project&project=1174&line=%E5%8D%A1%E6%B3%B0%E9%A9%B0::%E6%B1%BD%E8%BD%A6%E5%B9%B3%E5%8F%B0&tab=exposure&platform=doubao
html_url: https://cemeta-resource-1313090634.cos.ap-beijing.myqcloud.com/workflow/03a274fd-74e2-4fc8-bcc5-88b5286016f8.html
platform_period: 9月w38
html_monitor_date: 2026-09-15
report_dir: /Users/lily/Desktop/haoxian_L0L1L2L3/好现灌数/卡泰驰/0917/01-L1-项目级/monitor-0917-test
```
`platform_period` 对应用户说的 url日期。`html_monitor_date` 对应用户说的 html日期。`project``platform_url``project` 参数取。报告写成该目录下的 `测试报告-1-1174.md`;同一项目已有编号时,编号加 1。
## 批量
地址对在 [batch.example.json](batch.example.json)。每一项的 `url` 当作 `platform_url``html_url` 原样使用。`project_id` 必须等于该项 `url` 里的 `project`。日期和报告目录整批共用,不写进 JSON。
```text
batch_json: /Users/lily/Desktop/haoxian_L0L1L2L3/好现灌数/.cursor/skills/l1-geo-html-screen-diff/batch.example.json
platform_period: 9月w38
html_monitor_date: 2026-09-15
report_dir: /Users/lily/Desktop/haoxian_L0L1L2L3/好现灌数/卡泰驰/0917/01-L1-项目级/monitor-0917-test
```
按数组顺序逐项做完 12 项。每项单独编号,例如 `测试报告-1-1169.md``测试报告-1-1170.md`。同一项目已有 `测试报告-N-{project}.md` 时,只给该项编号加 1。消息里如果还写了一条 url地址和 html地址仍以 JSON 为准,不要只做那一条。