Commit Graph

5 Commits

Author SHA1 Message Date
sakuradairong
0acd244cb8 fix: 修复 _pubg_lookup_tool 误传 AiocqhttpMessageEvent 导致 TypeError 崩溃
三层防御:
1. _pubg_lookup_tool 检测 player_name 类型,非 str 时从 AstrMessageEvent 恢复
2. _fetch_all 增加 player_name/platform 类型断言和自动转换
3. _api_request 参数清洗,过滤非 str/int/float 的值

v1.4.2
2026-05-18 16:27:21 +08:00
sakuradairong
26ca2ca6f7 chore: bump to 1.4.1 2026-05-17 19:38:11 +08:00
sakuradairong
f41815f46e chore: bump version to 1.4.0 and add CHANGELOG 2026-05-17 19:31:36 +08:00
sakuradairong
fa9aa8d627 fix: update repo references from RainySY to sakuradairong
Original repo no longer exists (404). Point all URLs and author
fields to the active fork.
2026-05-17 19:13:10 +08:00
sakuradairong
f6d0c7c26a refactor: restructure repo layout and improve code quality
- Flatten directory: move all plugin files from astrbot_plugin_pubg/ to root
- Add .gitignore, __init__.py, requirements.txt
- Fix metadata version to match code (1.3.0)
- Remove unused Any import and dead variable assignments
- Fix tempfile resource leak on save failure
- Add proper type hints (AstrBotConfig, PIL types)
- Prefix BAN_STATUS_LABELS with underscore for consistency
- Modernize type annotations with from __future__ import annotations
2026-05-17 15:11:25 +08:00