From b7677edb1afe91bbfa77d207341c244d7d2c62e0 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 13 Dec 2024 22:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/egg_energy/give_activty_coin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rule/egg_energy/give_activty_coin.go b/rule/egg_energy/give_activty_coin.go index 7652b9c..2794401 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 ( - db "code.fnuoos.com/EggPlanet/egg_models.git/src" "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" @@ -67,7 +66,7 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin go dealEcpm(user, ecpm, ch) //TODO::协程处理ecpm的变化 //TODO::奖励多少个活跃积分(根据ecpm, 新用户机制, 蛋蛋分机制) - sysCfgDb := sys_cfg.NewSysCfgDb(db.Db) + sysCfgDb := sys_cfg.NewSysCfgDb(engine) videoRewardUnitPrice := sysCfgDb.SysCfgGetWithDb(enum.VideoRewardUnitPrice) if videoRewardUnitPrice != "" { //处理ecpm var coin model.VirtualCoin