58 lines
3.1 KiB
Markdown
Raw Permalink 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-20&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: /test/灌数/卡泰驰/项目级/monitor-0920-test
```
`platform_period` 对应用户说的 url日期。`html_monitor_date` 对应用户说的 html日期。`project``platform_url``project` 参数取。报告写成该目录下的 `测试报告-1-1174.md`;同一项目已有编号时,编号加 1。
## 批量
地址对在 [batch_0830.json](batch_0830.json)。每一项的 `url` 当作 `platform_url``html_url` 原样使用。`project_id` 必须等于该项 `url` 里的 `project`。日期和报告目录整批共用,不写进 JSON。
```text
batch_json: /test/haoxian-script/haoxian_kataichi/skills/L1-geo-html-screen-diff/batch_0830.json
platform_period: 9月w38
html_monitor_date: 2026-09-15
report_dir: /test/灌数/卡泰驰/项目级/monitor-0920-test
```
按数组顺序逐项做完 12 项。每项单独编号,例如 `测试报告-1-1169.md``测试报告-1-1170.md`。同一项目已有 `测试报告-N-{project}.md` 时,只给该项编号加 1。消息里如果还写了一条 url地址和 html地址仍以 JSON 为准,不要只做那一条。
## 海信集团(诊断 / geo.hisense.com
海信与卡泰驰 KPI 口径不同,见 [SKILL.md](SKILL.md)「企业口径」与 [reference.md](reference.md)「海信集团」。下面只示范怎么传参。
### 单条(电视诊断)
```text
platform_url: https://geo.hisense.com/geo-monitor?batchDate=2026-09-05&reportType=diagnosis&level=project&line=%E6%B5%B7%E4%BF%A1::%E7%94%B5%E8%A7%86&project=1609
html_url: https://cemeta-resource-1313090634.cos.ap-beijing.myqcloud.com/workflow/1df85901-eae1-4fd7-9185-e92e604b07fc.html
platform_period: 9月 W36
html_monitor_date: 2026-09-05
report_dir: /test/haoxian-script/haoxian_kataichi/skills/L1-geo-html-screen-diff/海信电视/diagnosis-0905-test
```
执行时:企业=海信,`reportType=diagnosis`,第 3/4 项按 **五卡**(品牌露出率 + 指定露出词露出率↔HTML露出率 + 首位/前三/前五 + 中正面 + 商品链接);排行默认品牌级且平台 competitor 只取 `kind=brand`;媒体类型按次数分母含「其他」换算。
### 批量
地址对在 [batch_海信电视0905诊断.json](batch_海信电视0905诊断.json)。
```text
batch_json: /test/haoxian-script/haoxian_kataichi/skills/L1-geo-html-screen-diff/batch_海信电视0905诊断.json
platform_period: 9月 W36
html_monitor_date: 2026-09-05
report_dir: /test/haoxian-script/haoxian_kataichi/skills/L1-geo-html-screen-diff/海信电视/diagnosis-0905-test
```
不要把该 JSON 里的 `project_id` / 日期当成其他批次的默认值。