From 4c4a3c5c958f432df57c30f98586d82a7c8a49fa Mon Sep 17 00:00:00 2001 From: hp0912 <809211365@qq.com> Date: Sun, 10 May 2026 12:38:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=96=E9=83=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/beauty/SKILL.md | 8 ++++---- skills/beauty/scripts/beauty.py | 2 +- skills/kfc/SKILL.md | 6 +++--- skills/kfc/scripts/kfc.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/skills/beauty/SKILL.md b/skills/beauty/SKILL.md index 903ae05..65ddda4 100644 --- a/skills/beauty/SKILL.md +++ b/skills/beauty/SKILL.md @@ -20,7 +20,7 @@ argument-hint: "无需参数,直接调用即可" ## 接口信息 -- 获取图片地址:`https://api.pearktrue.cn/api/today_wife` +- 获取图片地址:`https://api.pearapi.ai/api/today_wife` - 请求方式:`GET` - 发图接口:`http://127.0.0.1:{ROBOT_WECHAT_CLIENT_PORT}/api/v1/robot/message/send/image/url` - 请求方式:`POST` @@ -32,12 +32,12 @@ argument-hint: "无需参数,直接调用即可" "code": 200, "msg": "获取成功", "data": { - "image_url": "https://api.pearktrue.cn/api_assets/wife/9a6a9c38-7d6e-464f-8930-eb9dac41cde9.webp", + "image_url": "https://api.pearapi.ai/api_assets/wife/9a6a9c38-7d6e-464f-8930-eb9dac41cde9.webp", "role_name": "初音未来、巡音流歌", "width": 2480, "height": 3508 }, - "api_source": "官方API网:https://api.pearktrue.cn/" + "api_source": "官方API网:https://api.pearapi.ai/" } ``` @@ -52,7 +52,7 @@ argument-hint: "无需参数,直接调用即可" 1. 当用户发送 `999` 时触发该技能。 2. 在仓库根目录下执行本地脚本:`python3 scripts/beauty.py`。 -3. 脚本内部发送 `GET` 请求到 `https://api.pearktrue.cn/api/today_wife`。 +3. 脚本内部发送 `GET` 请求到 `https://api.pearapi.ai/api/today_wife`。 4. 脚本解析返回的 JSON,并提取 `data.image_url`。 5. 脚本从环境变量中读取 `ROBOT_WECHAT_CLIENT_PORT` 和 `ROBOT_FROM_WX_ID`。 6. 脚本发送 `POST` 请求到 `http://127.0.0.1:{ROBOT_WECHAT_CLIENT_PORT}/api/v1/robot/message/send/image/url`,请求体为: diff --git a/skills/beauty/scripts/beauty.py b/skills/beauty/scripts/beauty.py index ab1e8ca..2a78d4b 100644 --- a/skills/beauty/scripts/beauty.py +++ b/skills/beauty/scripts/beauty.py @@ -13,7 +13,7 @@ import urllib.request sys.stderr = sys.stdout -FETCH_API_URL = "https://api.pearktrue.cn/api/today_wife" +FETCH_API_URL = "https://api.pearapi.ai/api/today_wife" FALLBACK_TEXT = "今天的美女图片暂时没拿到,等我再找找。" diff --git a/skills/kfc/SKILL.md b/skills/kfc/SKILL.md index 03524d8..13f03f3 100644 --- a/skills/kfc/SKILL.md +++ b/skills/kfc/SKILL.md @@ -23,7 +23,7 @@ argument-hint: "无需参数,直接调用即可" ## 接口信息 -- 请求地址:`https://api.pearktrue.cn/api/kfc?type=json` +- 请求地址:`https://api.pearapi.ai/api/kfc?type=json` - 请求方式:`GET` - 本地脚本:`scripts/kfc.py` - 返回示例: @@ -33,7 +33,7 @@ argument-hint: "无需参数,直接调用即可" "code": 200, "msg": "获取成功", "text": "14看着不香,果然还是13更香,iPhone14真是更新了个寂寞!......今天肯德基疯狂星期四,谁请我吃?", - "api_source": "官方API网:https://api.pearktrue.cn/" + "api_source": "官方API网:https://api.pearapi.ai/" } ``` @@ -43,7 +43,7 @@ argument-hint: "无需参数,直接调用即可" 1. 当用户输入 `kfc`、`KFC`、`肯德基` 或 `肯德基文案` 时触发该技能。 2. 在仓库根目录下执行本地脚本:`python3 scripts/kfc.py`。 -3. 脚本内部发送 `GET` 请求到 `https://api.pearktrue.cn/api/kfc?type=json`。 +3. 脚本内部发送 `GET` 请求到 `https://api.pearapi.ai/api/kfc?type=json`。 4. 脚本解析返回的 JSON,并输出 `text` 字段。 5. 如果接口请求失败、返回格式异常,或没有拿到 `text`,脚本输出:`今天的肯德基文案暂时没拿到,等我再去问问。` 6. 如果脚本无法执行(Python 环境不可用),直接回复兜底文案:`今天的肯德基文案暂时没拿到,等我再去问问。` diff --git a/skills/kfc/scripts/kfc.py b/skills/kfc/scripts/kfc.py index 8d6ba2f..3337582 100644 --- a/skills/kfc/scripts/kfc.py +++ b/skills/kfc/scripts/kfc.py @@ -12,7 +12,7 @@ import urllib.request sys.stderr = sys.stdout -API_URL = "https://api.pearktrue.cn/api/kfc?type=json" +API_URL = "https://api.pearapi.ai/api/kfc?type=json" FALLBACK_TEXT = "今天的肯德基文案暂时没拿到,等我再去问问。"