dengbiao 2 settimane fa
parent
commit
cf66320ec0
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      rule/egg_energy/give_activty_coin.go

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

@@ -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 {


Caricamento…
Annulla
Salva