fix(订单折扣): 将折扣计算从整数百分比改为浮点数
Build docker and publish / build (20.15.1) (push) Failing after 6m30s

修改 SubscribeDiscount 结构体中的 Discount 字段类型为 float64,并调整 getDiscount 函数逻辑以直接使用浮点数计算
This commit is contained in:
2025-10-29 20:18:05 -07:00
parent 1302accaf9
commit 81086eea52
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -2084,8 +2084,8 @@ type SubscribeConfig struct {
}
type SubscribeDiscount struct {
Quantity int64 `json:"quantity"`
Discount int64 `json:"discount"`
Quantity int64 `json:"quantity"`
Discount float64 `json:"discount"`
}
type SubscribeGroup struct {