diff --git a/rule/consume_integral_settlement.go b/rule/consume_integral_settlement.go index 9e575ad..caafed7 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -263,7 +263,7 @@ func calcNowEverydayExperienceIntegral(consumeValue float64) (value float64, err return } func calcNowEverydayStoreIntegral(consumeValue, bili float64) (value float64, err error) { - value, _ = decimal.NewFromFloat(consumeValue * bili).RoundFloor(2).Float64() + value = zhios_order_relate_utils.FloatFormat(consumeValue*bili, 2) ////2、通过公式计算 "((资金池的金额 * 浮动比例) / 体验补贴总数) + 基础补贴" //experienceMoney, _ := decimal.NewFromString(subsidyBase.ExperienceTotalMoney) //baseSubsidyMoney, _ := decimal.NewFromString(subsidyBase.BaseSubsidyMoney)