|
|
@@ -168,7 +168,7 @@ func calcNowEverydayConsumeIntegral(subsidyBase *model.SubsidyBase, hasConsumeTo |
|
|
|
} |
|
|
|
floatSubsidyBili := decimal.NewFromFloat(float64(subsidyBase.FloatSubsidyBili) / 10000) |
|
|
|
consumeTotal := decimal.NewFromInt(hasConsumeTotal) |
|
|
|
value, _ = consumptionMoney.Mul(floatSubsidyBili).Div(consumeTotal).Add(baseSubsidyMoney).Float64() |
|
|
|
value, _ = consumptionMoney.Mul(floatSubsidyBili).Div(consumeTotal).Add(baseSubsidyMoney).RoundFloor(2).Float64() |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
@@ -182,7 +182,7 @@ func calcNowEverydayExperienceIntegral(subsidyBase *model.SubsidyBase, hasExperi |
|
|
|
} |
|
|
|
floatSubsidyBili := decimal.NewFromFloat(float64(subsidyBase.FloatSubsidyBili) / 10000) |
|
|
|
consumeTotal := decimal.NewFromInt(hasExperienceTotal) |
|
|
|
value, _ = experienceMoney.Mul(floatSubsidyBili).Div(consumeTotal).Add(baseSubsidyMoney).Float64() |
|
|
|
value, _ = experienceMoney.Mul(floatSubsidyBili).Div(consumeTotal).Add(baseSubsidyMoney).RoundFloor(2).Float64() |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|