|
@@ -65,13 +65,13 @@ func ActivityCoinReadyExchangeEggEnergy(engine *xorm.Engine, uid int64, ch *rabb |
|
|
|
|
|
|
|
|
//3、当前 "个人活跃积分"可以自动兑换的用户数据 && "团队活跃积分"可以自动兑换的用户数据 |
|
|
//3、当前 "个人活跃积分"可以自动兑换的用户数据 && "团队活跃积分"可以自动兑换的用户数据 |
|
|
var personUserVirtualAmount model.UserVirtualAmount |
|
|
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 { |
|
|
if err != nil { |
|
|
fmt.Println("err:::::1111", err) |
|
|
fmt.Println("err:::::1111", err) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
var teamUserVirtualAmount model.UserVirtualAmount |
|
|
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 { |
|
|
if err != nil { |
|
|
fmt.Println("err:::::2222", err) |
|
|
fmt.Println("err:::::2222", err) |
|
|
return |
|
|
return |
|
|