fix: 多项修复

- main.py: 加 _CNJSONResponse 修复 datetime 序列化时区(+00:00→+08:00)
- schemas/__init__.py: 加 _fmt_dt 函数和 sync_to_platform 字段
- ai_service.py: 评论 max_tokens 从 300 提升到 500 避免截断
- scheduler.py: datetime.utcnow() 全部改为 datetime.now()(北京时间)
- docker-compose.yml: MySQL 容器加 TZ=Asia/Shanghai
- Interactions.vue: 文章标题链接从系统配置读取域名,格式为 {域名}/huihui-h5/#/news/share?id={id}&login=no
This commit is contained in:
stefanfeng
2026-04-01 18:07:42 +08:00
parent fe9110ca3c
commit 958eaeda8a
5 changed files with 54 additions and 5 deletions

View File

@@ -174,7 +174,7 @@ class AIService:
5. 只输出评论正文,不要加任何前缀或解释
评论:"""
return await self._call_api(db, prompt, system_prompt, max_tokens=300)
return await self._call_api(db, prompt, system_prompt, max_tokens=500)
async def generate_reply(
self, db: AsyncSession, article_title: str, parent_comment: str,