Browse Source

add reverse:for v4.1.7 积分释放处理

tags/v4.1.7
huangjiajun 2 years ago
parent
commit
f056ad96e6
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      rule/integral_release_settlement.go

+ 4
- 0
rule/integral_release_settlement.go View File

@@ -468,6 +468,10 @@ func DealIntegralReleaseInterpositionUserAmount(session *xorm.Session, req md.De
integralReleaseInterpositionUserFlow.BeforeAlreadyAmount = alreadyAmountValue.String()
integralReleaseInterpositionUserFlow.AfterAlreadyAmount = alreadyAmountValue.String()
} else if req.Kind == "sub" {
if zhios_order_relate_utils.StrToFloat64(waiteAmountValue.Sub(amountValue).String()) < 0 { //不够扣就把剩余的扣了
amountValue = waiteAmountValue
req.Amount = zhios_order_relate_utils.StrToFloat64(waiteAmountValue.String())
}
integralReleaseInterpositionUserFlow.Kind = 2
integralReleaseInterpositionUserFlow.BeforeTotalAmount = totalAmountValue.String()
integralReleaseInterpositionUserFlow.AfterTotalAmount = totalAmountValue.String()


Loading…
Cancel
Save