ソースを参照

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

tags/v4.1.7
huangjiajun 1年前
コミット
f056ad96e6
1個のファイルの変更4行の追加0行の削除
  1. +4
    -0
      rule/integral_release_settlement.go

+ 4
- 0
rule/integral_release_settlement.go ファイルの表示

@@ -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()


読み込み中…
キャンセル
保存