From 5a385545a0067fe5f89f15efb9c3ecc7e70db993 Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Fri, 27 Mar 2026 18:49:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=962=E9=A1=B9=20(PR?= =?UTF-8?q?=20#28)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. teamExperienceYears 所有产品类型返回 2. startPrice 定金模式返回定金起售价 + startPriceLabel Co-Authored-By: Claude Opus 4.6 (1M context) --- .../2026-03/27_1849_mp_product_fixes.md | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 changelogs/2026-03/27_1849_mp_product_fixes.md diff --git a/changelogs/2026-03/27_1849_mp_product_fixes.md b/changelogs/2026-03/27_1849_mp_product_fixes.md new file mode 100644 index 0000000..5adbc1a --- /dev/null +++ b/changelogs/2026-03/27_1849_mp_product_fixes.md @@ -0,0 +1,59 @@ +# 小程序产品接口优化(2项) + +**日期**: 2026-03-27 +**类型**: BUG修复 + 优化 +**影响服务**: hl-product-service +**影响接口**: `GET /mp/product/{productId}`(详情)、`GET /mp/product/list`(列表)、`GET /mp/product/recommend`(推荐) + +--- + +## 1. 团队经验年数所有产品类型都返回 + +之前 `teamExperienceYears` 只有小蒙马(GROUP)产品才返回,现在所有产品类型都返回。 + +值自动从公司成立日期(2005年)计算,当前返回 **21**。 + +--- + +## 2. 起售价根据支付模式返回 + +### 新增字段 + +| 字段 | 类型 | 说明 | +|------|------|------| +| startPriceLabel | String | 价格标签:`"起"` 或 `"定金起"` | + +### startPrice 计算逻辑变更 + +| 支付模式 | startPrice | startPriceLabel | +|----------|-----------|----------------| +| FULL(全款) | 最低售价(不变) | `"起"` | +| DEPOSIT(定金+尾款) | 最低售价 × 定金比例(向上取整) | `"定金起"` | + +### 影响范围 + +列表和详情都已修改,返回格式一致。 + +### 响应示例 + +```json +// 全款模式 +{ + "startPrice": 5980, + "startPriceLabel": "起", + "paymentMode": "FULL" +} + +// 定金模式(30%定金) +{ + "startPrice": 1794, + "startPriceLabel": "定金起", + "paymentMode": "DEPOSIT" +} +``` + +### 前端使用建议 + +价格展示拼接方式:`¥${startPrice} ${startPriceLabel}` + +示例效果:`¥5980 起` 或 `¥1794 定金起`