|
@@ -209,10 +209,10 @@ func SettlementGiveActivityCoin(engine *xorm.Engine, user model.User, ecpm strin |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
fatherRewardValue := rewardValue * (egg_system_rules.StrToFloat64(directPushRewardSetting.RewardRateValue) / 100) |
|
|
fatherRewardValue := rewardValue * (egg_system_rules.StrToFloat64(directPushRewardSetting.RewardRateValue) / 100) |
|
|
|
|
|
var fatherSign model.EggSignIn |
|
|
if directPushRewardSetting.MemberSelfIsOpenGetTeamReward == "1" { |
|
|
if directPushRewardSetting.MemberSelfIsOpenGetTeamReward == "1" { |
|
|
fmt.Println("user:::::::::::::", user) |
|
|
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) |
|
|
|
|
|
|
|
|
has, err44 := engine.Where("uid =?", user.ParentUid).And("end_time >=?", time.Now().Format("2006-01-02 15:04:05")).Get(&fatherSign) |
|
|
if err44 != nil { |
|
|
if err44 != nil { |
|
|
return rewardValue, err44 |
|
|
return rewardValue, err44 |
|
|
} |
|
|
} |
|
@@ -279,6 +279,8 @@ 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, |
|
|
}, md2.EggEnergyTeamAssistance) |
|
|
}, md2.EggEnergyTeamAssistance) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|