2026-09-20 03:47:41 +08:00
|
|
|
|
# 调用示例
|
|
|
|
|
|
|
|
|
|
|
|
示例只说明参数怎么传。执行时用用户本次给的值,不要把下面的地址和日期当成默认值。
|
|
|
|
|
|
|
2026-09-21 10:25:47 +08:00
|
|
|
|
## 单条
|
|
|
|
|
|
|
2026-09-20 03:47:41 +08:00
|
|
|
|
```text
|
2026-09-20 15:03:39 +08:00
|
|
|
|
platform_url: https://haoxian.cemeta.cn/geo-monitor?batchDate=2026-09-20&reportType=monitor&tab=citation
|
|
|
|
|
|
html_url: https://cemeta-resource-1313090634.cos.ap-beijing.myqcloud.com/workflow/28757ffe-f284-48bb-8af6-c7739de56fa8.html?hxv=4&hxts=2026-09-20T00%3A00%3A00
|
2026-09-20 03:47:41 +08:00
|
|
|
|
html_monitor_date: 2026-09-15
|
|
|
|
|
|
platform_period: 9月W38
|
2026-09-21 10:25:47 +08:00
|
|
|
|
report_dir: /test/灌数/卡泰驰/企业级/monitor-0920-test
|
2026-09-20 03:47:41 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
2026-09-20 15:03:39 +08:00
|
|
|
|
这次示例里,HTML 监测日期 `2026-09-20` 对应平台监测周期 `9月W38`。报告写成该目录下的 `测试报告-1.md`。目录里已有 `测试报告-N.md` 时,编号加 1。`测试报告.md` 不算已有编号。换一批数据时,五个参数一起换。
|
2026-09-21 10:25:47 +08:00
|
|
|
|
|
|
|
|
|
|
## 批量
|
|
|
|
|
|
|
|
|
|
|
|
地址对在 [batch.json](batch.json)。每一项的 `url` 当作 `platform_url`,`html_url` 原样使用。`project_id` 必须等于该项 `url` 里的 `project`。日期和报告目录整批共用,不写进 JSON。
|
|
|
|
|
|
|
|
|
|
|
|
```text
|
|
|
|
|
|
batch_json: /test/haoxian-script/haoxian_kataichi/skills/L3-geo-html-screen-diff/batch.json
|
|
|
|
|
|
platform_period: 9月w38
|
|
|
|
|
|
html_monitor_date: 2026-09-15
|
|
|
|
|
|
report_dir: /test/灌数/卡泰驰/企业级/monitor-0920-test
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
按数组顺序逐项做完 4 项。每项单独编号,例如 `测试报告-1-1169.md`、`测试报告-1-1170.md`。同一项目已有 `测试报告-N-{project}.md` 时,只给该项编号加 1。消息里如果还写了一条 url地址和 html地址,仍以 JSON 为准,不要只做那一条。
|