Sfoglia il codice sorgente

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

tags/v4.1.7
huangjiajun 1 anno fa
parent
commit
f056ad96e6
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      rule/integral_release_settlement.go

+ 4
- 0
rule/integral_release_settlement.go Vedi 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()


Caricamento…
Annulla
Salva