xiaozhi-esp32-server/main/xiaozhi-server/plugins_func
Jacob 15d9b0fba1
fix: harden weather and news plugins (#3465)
* fix: harden weather and news plugins

* 修掉天气新闻插件的三处鲁棒性缺陷

城市查询不再写死国内范围,境外城市也能查到。实时天气和七天预报要都拿到才走 JSON,缺一个就整体退回网页路径,不产出残缺报告。网页抓取加上跟随跳转,旧链接的 302 也能拿到内容。城市查不到时不再让用户去核对地名,多数情况是密钥失效。报告补上气压和降水量。新闻 URL 拼接抽成纯函数,配了 23 项单测。

---------

Co-authored-by: hrz <1710360675@qq.com>
2026-10-29 09:46:01 +08:00
..
functions fix: harden weather and news plugins (#3465) 2026-10-29 09:46:01 +08:00
loadplugins.py update:合并最新代码 2025-04-04 00:27:04 +08:00
register.py fix(plugins): 展开模块级别插件名为具体函数名 2026-07-24 10:47:00 +08:00