Files
msh-system/scripts/logs/agent-BUG-009-165426.log
scottpan 4be53dcd1b feat: 集成 KieAI 服务,移除 models-integration 子项目
- 添加 Gemini 2.5 Flash 对话接口(流式+非流式)
- 添加 NanoBanana 图像生成/编辑接口
- 添加 Sora2 视频生成接口(文生视频、图生视频、去水印)
- 移除 models-integration 子项目(功能已迁移至主后端)
- 新增测试文档和 Playwright E2E 配置
- 更新前端页面和 API 接口
- 更新后端配置和日志处理
2026-03-03 15:33:50 +08:00

21 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
BUG-009 已按你的要求改完,修改总结如下:
## 1. Template 检查结果
- **Tab 文案**:四个 Tab 的展示文字早就是中文(推荐、最新、关注、热门),未改。
- **Tab 内部值**`currentTab` 仍为 `recommend` / `latest` / `follow` / `hot`,用于 `switchTab()` 和接口参数 `tab`,按「不改动接口调用等逻辑」保留。
- **帖子类型标签**:两处原先直接显示 `{{ item.mealType }}`,若接口返回英文(如 `breakfast`)会显示英文,已改为通过映射显示中文。
## 2. 具体修改
1. **类型标签展示改为用“中文 label”**
- 有图:`<view class="meal-tag">{{ getMealTypeLabel(item.mealType) }}</view>`
- 无图:`<view class="type-tag">{{ getMealTypeLabel(item.mealType) }}</view>`
2. **新增 `getMealTypeLabel(mealType)` 方法**
- 英文 → 中文映射:`breakfast`→早餐、`lunch`→午餐、`dinner`→晚餐、`snack`→加餐、`share`→分享、`checkin`→打卡。
- 若 `mealType` 已是中文或未知,则原样返回;空则返回「分享」。
这样 Tab 展示仍是中文,帖子类型在界面上也统一为中文;`currentTab`、接口入参和请求逻辑均未改动。