|
|
@@ -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" |
|
|
@@ -65,7 +64,7 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ch *rabbit |
|
|
|
|
|
|
|
var rewardValue float64 //TODO::奖励多少个活跃积分(根据ecpm, 新用户机制, 蛋蛋分机制) |
|
|
|
redisConn := cache.GetPool().Get() |
|
|
|
sysCfgDb := implement.NewSysCfgDb(db.Db, redisConn) |
|
|
|
sysCfgDb := implement.NewSysCfgDb(engine, redisConn) |
|
|
|
videoRewardUnitPrice := sysCfgDb.SysCfgGetWithDb(enum.VideoRewardUnitPrice) |
|
|
|
if videoRewardUnitPrice != "" { //处理ecpm |
|
|
|
var coin model.VirtualCoin |
|
|
@@ -107,7 +106,7 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ch *rabbit |
|
|
|
} |
|
|
|
score = doc.ScoreValue |
|
|
|
} |
|
|
|
eggPointPartitionCoefficientManagementDb := implement.NewEggPointPartitionCoefficientManagementDb(db.Db) |
|
|
|
eggPointPartitionCoefficientManagementDb := implement.NewEggPointPartitionCoefficientManagementDb(engine) |
|
|
|
eggPointPartitionCoefficientManagements, err1 := eggPointPartitionCoefficientManagementDb.EggPointPartitionCoefficientManagementGetAll() |
|
|
|
if err1 != nil { |
|
|
|
return err1 |
|
|
|