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