|
|
@@ -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), |
|
|
|
}) |
|
|
|