Quellcode durchsuchen

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

tags/v4.1.5
huangjiajun vor 2 Jahren
Ursprung
Commit
d0f3690f2d
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +2
    -2
      rule/integral_release_settlement.go
  2. +1
    -1
      svc/svc_deal_user_amount.go

+ 2
- 2
rule/integral_release_settlement.go Datei anzeigen

@@ -208,7 +208,7 @@ func DailySettlementIntegralReleaseForInterposition(engine *xorm.Engine, mid str
for _, user := range users { for _, user := range users {
//查询当前用户今日的积分释放值 //查询当前用户今日的积分释放值
var integralReleaseUserWithOrdFlow model.IntegralReleaseUserWithOrdFlow var integralReleaseUserWithOrdFlow model.IntegralReleaseUserWithOrdFlow
has, err := session.Where("uid =? and release_date =?", user.Uid, today).And("release_green_coin_num > 0").Get(&integralReleaseUserWithOrdFlow)
has, err := session.Where("uid =? and release_date =?", user.Uid, today).And("release_green_coin_num > 0").Desc("id").Get(&integralReleaseUserWithOrdFlow)
if has == false { if has == false {
continue continue
} }
@@ -227,7 +227,7 @@ func DailySettlementIntegralReleaseForInterposition(engine *xorm.Engine, mid str
Kind: "sub", Kind: "sub",
Mid: mid, Mid: mid,
OrdId: "", OrdId: "",
CoinId: integralRelease.Coin2,
CoinId: user.CoinId,
Uid: user.Uid, Uid: user.Uid,
Amount: zhios_order_relate_utils.StrToFloat64(integralReleaseUserWithOrdFlow.ReleaseGreenCoinNum), Amount: zhios_order_relate_utils.StrToFloat64(integralReleaseUserWithOrdFlow.ReleaseGreenCoinNum),
}) })


+ 1
- 1
svc/svc_deal_user_amount.go Datei anzeigen

@@ -41,7 +41,7 @@ func DealUserAmount(session *xorm.Session, req md.DealUserAmount) (err error) {


var finUserFlow = model.FinUserFlow{ var finUserFlow = model.FinUserFlow{
Uid: req.Uid, Uid: req.Uid,
Amount: "",
Amount: amountValue.String(),
BeforeAmount: userAmount, BeforeAmount: userAmount,
OrdType: req.OrderType, OrdType: req.OrderType,
OrdId: req.OrdId, OrdId: req.OrdId,


Laden…
Abbrechen
Speichern