From ea2192cd13e798b6924f71c04031c58f02378beb Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 29 Nov 2024 16:32:57 +0800 Subject: [PATCH] update --- rule/egg_energy/give_activty_coin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/egg_energy/give_activty_coin.go b/rule/egg_energy/give_activty_coin.go index 6b59556..9b31e0b 100644 --- a/rule/egg_energy/give_activty_coin.go +++ b/rule/egg_energy/give_activty_coin.go @@ -250,7 +250,7 @@ func ActivityCoinToAlipayRealName(engine *xorm.Engine, uid int64, amount string) //2、判断个人蛋蛋积分是否足够 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 @@ -323,7 +323,7 @@ func CheckActivityCoinToAlipayRealName(engine *xorm.Engine, uid int64, amount st //2、判断个人蛋蛋积分是否足够 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