mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 13:38:43 +00:00
refactor(render): 解决国内可能存在的资源访问问题,新增大陆资源和海外资源可选项,允许用户根据服务器位置选择不同的资源策略,并且允许自定义资源镜像站
- Updated language attributes in HTML templates to dynamically set based on `t2i_font_source`. - Replaced hardcoded Google Fonts links with dynamic links using `t2i_google_fonts_mirror` and `t2i_gstatic_mirror`. - Adjusted font-family declarations to conditionally include 'Noto Sans SC' and 'Noto Sans TC' based on the `t2i_font_source`. - Ensured consistent formatting and style across various templates including image, quote, topic, and user title items. - Added missing newlines at the end of several files for consistency.
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
# 更新日志 (CHANGELOG)
|
||||
|
||||
## [v4.10.2] - ✨ 支持多地区渲染环境与自定义镜像
|
||||
* **🌍 多地区环境支持**: 新增 `t2i_font_source` 配置项,支持 `Mainland` (大陆) 和 `Overseas` (海外) 模式。自动切换 HTML 语言标识 (`zh-CN`/`zh-Hant`) 并动态调整 CSS 字体栈优先级,解决繁体中文支持与字形偏移问题。
|
||||
* **⚙️ 自定义镜像地址**: 移除了所有硬编码的字体资源站地址。现在用户可以为国内和国外环境分别自定义 Google Fonts、Gstatic 字体镜像站。
|
||||
* **📱 平台与主题优化**:
|
||||
* **Telegram**: 修复了 Telegram 平台的头像处理逻辑 (#176 @lekoOwO)。
|
||||
* **🛠️ 基础设施与调试**: 重构模板实现完全的数据驱动渲染;更新 `debug_render.py` 并新增 `test_regional_rendering.py` 验证脚本。
|
||||
|
||||
---
|
||||
|
||||
## [v4.10.1] - ✨ 优化 T2I 渲染与自定义配置
|
||||
* **✨ 自定义配置支持**: 支持配置两轮 T2I 渲染策略,允许用户自定义图片格式(PNG/JPEG)、质量、分辨率及超时时间(#164),支持复杂渲染场景的超时参数配置(#174 感谢 @uuutt2023)。
|
||||
* **🛠️ 健壮性增强**: 实现 T2I 返回 HTML 错误页的自动识别与摘要提取(如 502 Bad Gateway),提升故障排查效率。(参考 #171 说明)
|
||||
|
||||
Reference in New Issue
Block a user