From 4909f629fbbe03266e8a18703cb7b0f3758d0231 Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Fri, 1 May 2026 16:08:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp-product):=20MP=20=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=20fees=20=E8=A1=A5=20feeType=20+=20icon=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=20PR=20#1601?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...roduct_detail_fees_missing_feetype_icon.md | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 changelogs/2026-05/01_fix_mp_product_detail_fees_missing_feetype_icon.md diff --git a/changelogs/2026-05/01_fix_mp_product_detail_fees_missing_feetype_icon.md b/changelogs/2026-05/01_fix_mp_product_detail_fees_missing_feetype_icon.md new file mode 100644 index 0000000..6f25483 --- /dev/null +++ b/changelogs/2026-05/01_fix_mp_product_detail_fees_missing_feetype_icon.md @@ -0,0 +1,61 @@ +# 小程序产品详情 includedFees/excludedFees 补 feeType + icon 字段 + +**类型**: 后端 BUG 修复 +**前端处理者**: mmg +**日期**: 2026-05-01 +**关联**: 工单 #1600 / PR #1601 +**影响**: 小程序产品详情接口 `GET /mp/product/{productId}` 的 includedFees / excludedFees 数组每项 + +--- + +## 现象 + +前端反馈接口返回的 includedFees / excludedFees 字段不对, 每项只有 name + description, 缺类型字段无法分类展示。 + +## 修复 + +`MpProductDetailRespVO.FeeInfo` VO 加 feeType + icon 字段: + +```jsonc +{ + "code": 200, + "data": { + "includedFees": [ + { + "name": "扎赉诺尔博物馆,巴尔虎蒙古部落,海拉尔国家森林公园", + "description": null, + "feeType": "景区", // 🆕 字典值: 景区/游玩项目/住宿/餐饮/交通 + "icon": "" // 🆕 admin 上传的 SVG 字符串(无则 null) + }, + { + "name": "海拉尔首旅京伦酒店, 额尔古纳豪星酒店", + "description": null, + "feeType": "住宿", + "icon": "" + } + ], + "excludedFees": [ + { + "name": "往返大交通", + "description": "", + "feeType": null, // excluded 类是手动录入, 可能无类型 + "icon": null + } + ] + } +} +``` + +## 字典: fee_type + +| value | label | +|-------|-------| +| 景区 | 景区(门票) | +| 游玩项目 | 游玩项目(活动) | +| 住宿 | 住宿 | +| 餐饮 | 餐饮 | +| 交通 | 交通 | + +## 测试服已就绪 + +GET https://api.test.1814.love:9443/mp/product/2049754271968047106 直接验证。