|
@@ -1,7 +1,6 @@ |
|
|
package egg_energy |
|
|
package egg_energy |
|
|
|
|
|
|
|
|
import ( |
|
|
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/implement" |
|
|
"code.fnuoos.com/EggPlanet/egg_models.git/src/model" |
|
|
"code.fnuoos.com/EggPlanet/egg_models.git/src/model" |
|
|
"code.fnuoos.com/EggPlanet/egg_system_rules.git/enum" |
|
|
"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, 新用户机制, 蛋蛋分机制) |
|
|
//TODO::奖励多少个活跃积分(根据ecpm, 新用户机制, 蛋蛋分机制) |
|
|
redisConn := cache.GetPool().Get() |
|
|
redisConn := cache.GetPool().Get() |
|
|
sysCfgDb := implement.NewSysCfgDb(engine, redisConn) |
|
|
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) |
|
|
videoRewardUnitPrice := sysCfgDb.SysCfgGetWithDb(enum.VideoRewardUnitPrice) |
|
|
if videoRewardUnitPrice != "" { //处理ecpm |
|
|
if videoRewardUnitPrice != "" { //处理ecpm |
|
|
var coin model.VirtualCoin |
|
|
var coin model.VirtualCoin |
|
|