dengbiao 2 weeks ago
parent
commit
cf66320ec0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      rule/egg_energy/give_activty_coin.go

+ 3
- 0
rule/egg_energy/give_activty_coin.go View File

@@ -26,6 +26,8 @@ import (


// SettlementGiveActivityCoin 结算观看激励广告得到蛋蛋积分 // SettlementGiveActivityCoin 结算观看激励广告得到蛋蛋积分
func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm string, ch *rabbit.Channel) (rewardValue float64, err error) { func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm string, ch *rabbit.Channel) (rewardValue float64, err error) {
egg_system_rules.FilePutContents("SettlementGiveActivityCoin", egg_system_rules.SerializeStr(user))

uid := user.Id uid := user.Id
now := time.Now() now := time.Now()


@@ -198,6 +200,7 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin
} }
fatherRewardValue := rewardValue * (egg_system_rules.StrToFloat64(directPushRewardSetting.RewardRateValue) / 100) fatherRewardValue := rewardValue * (egg_system_rules.StrToFloat64(directPushRewardSetting.RewardRateValue) / 100)
if directPushRewardSetting.MemberSelfIsOpenGetTeamReward == "1" { if directPushRewardSetting.MemberSelfIsOpenGetTeamReward == "1" {
fmt.Println("user:::::::::::::", user)
var m model.EggSignIn var m model.EggSignIn
has, err44 := engine.Where("uid =?", user.ParentUid).And("end_time >=?", time.Now().Format("2006-01-02 15:04:05")).Get(&m) has, err44 := engine.Where("uid =?", user.ParentUid).And("end_time >=?", time.Now().Format("2006-01-02 15:04:05")).Get(&m)
if err44 != nil { if err44 != nil {


Loading…
Cancel
Save