From 3cbf4a36689330c5e8e674280221c962624c14da Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Mon, 13 Apr 2026 13:57:35 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E9=80=9A=E7=9F=A5=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E7=BA=BFseasons/tags=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .../2026-04-13_product-v2_line_json_fix.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 changelogs/2026-04/2026-04-13_product-v2_line_json_fix.md diff --git a/changelogs/2026-04/2026-04-13_product-v2_line_json_fix.md b/changelogs/2026-04/2026-04-13_product-v2_line_json_fix.md new file mode 100644 index 0000000..31454f9 --- /dev/null +++ b/changelogs/2026-04/2026-04-13_product-v2_line_json_fix.md @@ -0,0 +1,33 @@ +# 接口变更记录 — 2026-04-13 + +> **变更类型**:BUG修复 +> **影响接口**:产品线分页列表、产品线详情 + +--- + +## 产品线 seasons/tags 返回格式修复 + +### 问题 + +产品线列表和详情接口的 `seasons` 和 `tags` 字段返回的是 JSON 字符串而非数组: + +```json +// 修复前(错误) +"seasons": "[\"spring\", \"summer\", \"autumn\", \"winter\"]", +"tags": "[\"自驾\", \"高原\", \"摄影\", \"可亲\"]" + +// 修复后(正确) +"seasons": ["spring", "summer", "autumn", "winter"], +"tags": ["自驾", "高原", "摄影", "可亲"] +``` + +### 影响接口 + +| 方法 | 路径 | 说明 | +|------|------|------| +| GET | `/admin/product/line/list` | 产品线分页列表 | +| GET | `/admin/product/line/{lineId}` | 产品线详情 | + +### 修复状态 + +代码已修复,等待下次部署生效。