From e0e1afc0ff46fafe9958ec55dd2f2dbd4801b0b0 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 29 Nov 2024 16:33:57 +0800 Subject: [PATCH] update --- rule/egg_energy/activity_coin_ready_exchange_egg_energy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/egg_energy/activity_coin_ready_exchange_egg_energy.go b/rule/egg_energy/activity_coin_ready_exchange_egg_energy.go index 29f26b3..18ec3a7 100644 --- a/rule/egg_energy/activity_coin_ready_exchange_egg_energy.go +++ b/rule/egg_energy/activity_coin_ready_exchange_egg_energy.go @@ -65,13 +65,13 @@ func ActivityCoinReadyExchangeEggEnergy(engine *xorm.Engine, uid int64, ch *rabb //3、当前 "个人活跃积分"可以自动兑换的用户数据 && "团队活跃积分"可以自动兑换的用户数据 var personUserVirtualAmount model.UserVirtualAmount - _, err = engine.Where("coin_id = ?", eggEnergyBasicSetting.PersonEggPointsCoinId).Get(&personUserVirtualAmount) + _, err = engine.Where("coin_id = ?", eggEnergyBasicSetting.PersonEggPointsCoinId).And("uid =?", uid).Get(&personUserVirtualAmount) if err != nil { fmt.Println("err:::::1111", err) return } var teamUserVirtualAmount model.UserVirtualAmount - _, err = engine.Where("coin_id = ?", eggEnergyBasicSetting.TeamEggPointsCoinId).Get(&teamUserVirtualAmount) + _, err = engine.Where("coin_id = ?", eggEnergyBasicSetting.TeamEggPointsCoinId).And("uid =?", uid).Get(&teamUserVirtualAmount) if err != nil { fmt.Println("err:::::2222", err) return