From f4422da40bfb41ec838886bc7ff9ffb5ee4282bf Mon Sep 17 00:00:00 2001 From: dengbiao Date: Thu, 12 Dec 2024 12:06:18 +0800 Subject: [PATCH] update --- rule/egg_energy/give_activty_coin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rule/egg_energy/give_activty_coin.go b/rule/egg_energy/give_activty_coin.go index 0e9e452..094e046 100644 --- a/rule/egg_energy/give_activty_coin.go +++ b/rule/egg_energy/give_activty_coin.go @@ -66,6 +66,8 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin //TODO::奖励多少个活跃积分(根据ecpm, 新用户机制, 蛋蛋分机制) redisConn := cache.GetPool().Get() + defer redisConn.Close() + sysCfgDb := implement.NewSysCfgDb(engine, redisConn) videoRewardUnitPrice := sysCfgDb.SysCfgGetWithDb(enum.VideoRewardUnitPrice) if videoRewardUnitPrice != "" { //处理ecpm