From d0f3690f2d14c550b5a0f1c0f9bf3c30a761a29e Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 29 Nov 2022 16:02:18 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v4.1.5=20=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E9=87=8A=E6=94=BE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/integral_release_settlement.go | 4 ++-- svc/svc_deal_user_amount.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rule/integral_release_settlement.go b/rule/integral_release_settlement.go index 674846d..f9fcf47 100644 --- a/rule/integral_release_settlement.go +++ b/rule/integral_release_settlement.go @@ -208,7 +208,7 @@ func DailySettlementIntegralReleaseForInterposition(engine *xorm.Engine, mid str for _, user := range users { //查询当前用户今日的积分释放值 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 { continue } @@ -227,7 +227,7 @@ func DailySettlementIntegralReleaseForInterposition(engine *xorm.Engine, mid str Kind: "sub", Mid: mid, OrdId: "", - CoinId: integralRelease.Coin2, + CoinId: user.CoinId, Uid: user.Uid, Amount: zhios_order_relate_utils.StrToFloat64(integralReleaseUserWithOrdFlow.ReleaseGreenCoinNum), }) diff --git a/svc/svc_deal_user_amount.go b/svc/svc_deal_user_amount.go index 24966ed..14ba0ce 100644 --- a/svc/svc_deal_user_amount.go +++ b/svc/svc_deal_user_amount.go @@ -41,7 +41,7 @@ func DealUserAmount(session *xorm.Session, req md.DealUserAmount) (err error) { var finUserFlow = model.FinUserFlow{ Uid: req.Uid, - Amount: "", + Amount: amountValue.String(), BeforeAmount: userAmount, OrdType: req.OrderType, OrdId: req.OrdId,