Browse Source

update

master
dengbiao 20 hours ago
parent
commit
e3935437fc
1 changed files with 12 additions and 3 deletions
  1. +12
    -3
      rule/egg_energy/give_activty_coin.go

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

@@ -149,6 +149,9 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin
var rewardFather []struct { var rewardFather []struct {
Uid int64 `json:"uid"` //用户id Uid int64 `json:"uid"` //用户id
RewardValue float64 `json:"reward_value"` //奖励值 RewardValue float64 `json:"reward_value"` //奖励值
StartAt string `json:"start_at"`
EndAt string `json:"end_at"`
SignId int64 `json:"sign_id"`
} }


var fatherUids []string var fatherUids []string
@@ -195,9 +198,15 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin
rewardFather = append(rewardFather, struct { rewardFather = append(rewardFather, struct {
Uid int64 `json:"uid"` //用户id Uid int64 `json:"uid"` //用户id
RewardValue float64 `json:"reward_value"` //奖励值 RewardValue float64 `json:"reward_value"` //奖励值
StartAt string `json:"start_at"`
EndAt string `json:"end_at"`
SignId int64 `json:"sign_id"`
}{ }{
Uid: egg_system_rules.StrToInt64(fatherUid), Uid: egg_system_rules.StrToInt64(fatherUid),
RewardValue: fatherRewardValue, RewardValue: fatherRewardValue,
StartAt: m.StartTime,
EndAt: m.EndTime,
SignId: m.Id,
}) })
} }
} }
@@ -279,9 +288,9 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin
AssistanceUid: uid, AssistanceUid: uid,
Uid: vv.Uid, Uid: vv.Uid,
AssistanceValue: vv.RewardValue, AssistanceValue: vv.RewardValue,
SignStart: fatherSign.StartTime,
SignEnd: fatherSign.EndTime,
SignId: fatherSign.Id,
SignStart: vv.StartAt,
SignEnd: vv.EndAt,
SignId: vv.SignId,
}, md2.EggEnergyTeamAssistance) }, md2.EggEnergyTeamAssistance)
} }
} }


Loading…
Cancel
Save