Browse Source

更新

master
huangjiajun 5 months ago
parent
commit
fdd5c707a1
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      rule/consume_integral_settlement.go

+ 0
- 2
rule/consume_integral_settlement.go View File

@@ -374,7 +374,6 @@ func DealUserConsumeIntegral(session *xorm.Session, subsidyWithUser *model.Subsi
balanceAmount1, _ := decimal.NewFromString(subsidyWithUser.BalanceAmount) balanceAmount1, _ := decimal.NewFromString(subsidyWithUser.BalanceAmount)
afterAmount1, _ := balanceAmount1.Sub(decimal.NewFromFloat(consumeIntegralValue)).Float64() afterAmount1, _ := balanceAmount1.Sub(decimal.NewFromFloat(consumeIntegralValue)).Float64()
if afterAmount1 <= 0 { if afterAmount1 <= 0 {
afterAmount1 = 0
} }
subsidyWithUser.BalanceAmount = zhios_order_relate_utils.Float64ToStr(afterAmount1) subsidyWithUser.BalanceAmount = zhios_order_relate_utils.Float64ToStr(afterAmount1)
subsidyWithUser.LeaveDay = afterAmount subsidyWithUser.LeaveDay = afterAmount
@@ -459,7 +458,6 @@ func DealUserExperienceIntegral(session *xorm.Session, subsidyWithUser *model.Su
balanceAmount1, _ := decimal.NewFromString(subsidyWithUser.BalanceAmount) balanceAmount1, _ := decimal.NewFromString(subsidyWithUser.BalanceAmount)
afterAmount1, _ := balanceAmount1.Sub(decimal.NewFromFloat(experienceIntegralValue)).Float64() afterAmount1, _ := balanceAmount1.Sub(decimal.NewFromFloat(experienceIntegralValue)).Float64()
if afterAmount1 <= 0 { if afterAmount1 <= 0 {
afterAmount1 = 0
} }
subsidyWithUser.BalanceAmount = zhios_order_relate_utils.Float64ToStr(afterAmount1) subsidyWithUser.BalanceAmount = zhios_order_relate_utils.Float64ToStr(afterAmount1)




Loading…
Cancel
Save