dengbiao 2 週之前
父節點
當前提交
cf66320ec0
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      rule/egg_energy/give_activty_coin.go

+ 3
- 0
rule/egg_energy/give_activty_coin.go 查看文件

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

// SettlementGiveActivityCoin 结算观看激励广告得到蛋蛋积分
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
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)
if directPushRewardSetting.MemberSelfIsOpenGetTeamReward == "1" {
fmt.Println("user:::::::::::::", user)
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)
if err44 != nil {


Loading…
取消
儲存