1. teamExperienceYears 所有产品类型返回 2. startPrice 定金模式返回定金起售价 + startPriceLabel Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB
小程序产品接口优化(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(定金+尾款) | 最低售价 × 定金比例(向上取整) | "定金起" |
影响范围
列表和详情都已修改,返回格式一致。
响应示例
// 全款模式
{
"startPrice": 5980,
"startPriceLabel": "起",
"paymentMode": "FULL"
}
// 定金模式(30%定金)
{
"startPrice": 1794,
"startPriceLabel": "定金起",
"paymentMode": "DEPOSIT"
}
前端使用建议
价格展示拼接方式:¥${startPrice} ${startPriceLabel}
示例效果:¥5980 起 或 ¥1794 定金起