From b9172d9df4cbe191a37fa4aa4eed0cd3a3df632e Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 12 Dec 2024 11:41:46 +0800 Subject: [PATCH] update --- rule/egg_energy/give_activty_coin.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rule/egg_energy/give_activty_coin.go b/rule/egg_energy/give_activty_coin.go index 2fa9c3f..0e9e452 100644 --- a/rule/egg_energy/give_activty_coin.go +++ b/rule/egg_energy/give_activty_coin.go @@ -1,7 +1,6 @@ package egg_energy import ( - "code.fnuoos.com/EggPlanet/egg_models.git/src/dao" "code.fnuoos.com/EggPlanet/egg_models.git/src/implement" "code.fnuoos.com/EggPlanet/egg_models.git/src/model" "code.fnuoos.com/EggPlanet/egg_system_rules.git/enum" @@ -68,12 +67,6 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin //TODO::奖励多少个活跃积分(根据ecpm, 新用户机制, 蛋蛋分机制) redisConn := cache.GetPool().Get() sysCfgDb := implement.NewSysCfgDb(engine, redisConn) - defer func(sysCfgDb dao.SysCfgDao) { - err = sysCfgDb.Close() - if err != nil { - fmt.Println("redis close err:" + err.Error()) // 记录错误信息 - } - }(sysCfgDb) videoRewardUnitPrice := sysCfgDb.SysCfgGetWithDb(enum.VideoRewardUnitPrice) if videoRewardUnitPrice != "" { //处理ecpm var coin model.VirtualCoin