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 直接验证。