|
|
@@ -89,6 +89,9 @@ func GetEggEnergyBasic(c *gin.Context) { |
|
|
|
var newUserRewardRules md2.NewUserRewardRules |
|
|
|
utils.Unserialize([]byte(basicSettings.NewUserIncentiveRules), newUserRewardRules) |
|
|
|
|
|
|
|
var directPushReward md2.TeamRewardSettingStruct |
|
|
|
utils.Unserialize([]byte(basicSettings.DirectPushReward), directPushReward) |
|
|
|
|
|
|
|
resp := md.GetEggEnergyBasicResp{ |
|
|
|
BasicSetting: md.BasicSetting{ |
|
|
|
IsOpen: basicSettings.IsOpen, |
|
|
@@ -96,7 +99,12 @@ func GetEggEnergyBasic(c *gin.Context) { |
|
|
|
TeamEggEnergyCoinId: basicSettings.TeamEggEnergyCoinId, |
|
|
|
PersonEggPointsCoinId: basicSettings.PersonEggPointsCoinId, |
|
|
|
TeamEggPointsCoinId: basicSettings.TeamEggPointsCoinId, |
|
|
|
DirectPushReward: basicSettings.DirectPushReward, |
|
|
|
DirectPushReward: md2.TeamRewardSettingStruct{ |
|
|
|
RewardDecrementValue: directPushReward.RewardDecrementValue, |
|
|
|
RewardEndValue: directPushReward.RewardEndValue, |
|
|
|
MemberSelfIsOpenGetTeamReward: directPushReward.MemberSelfIsOpenGetTeamReward, |
|
|
|
OneRoundDuration: directPushReward.OneRoundDuration, |
|
|
|
}, |
|
|
|
}, |
|
|
|
VideoRewardSetting: md.VideoRewardSetting{ |
|
|
|
VideoRewardIsOpen: basicSettings.VideoRewardIsOpen, |
|
|
@@ -176,6 +184,7 @@ func UpdateEggEnergyBasic(c *gin.Context) { |
|
|
|
exchangeRulesStr := utils.SerializeStr(req.ExchangeRules) |
|
|
|
rewardSystemStr := utils.SerializeStr(req.RewardSystem) |
|
|
|
newUserIncentiveRulesStr := utils.SerializeStr(req.NewUserIncentiveRules) |
|
|
|
directPushRewardStr := utils.SerializeStr(req.BasicSetting.DirectPushReward) |
|
|
|
|
|
|
|
m := model.EggEnergyBasicSetting{ |
|
|
|
Id: req.SystemID, |
|
|
@@ -192,7 +201,7 @@ func UpdateEggEnergyBasic(c *gin.Context) { |
|
|
|
TotalUserForPerson: req.DataSetting.TotalUserForPerson, |
|
|
|
TotalUserForTeam: req.DataSetting.TotalUserForTeam, |
|
|
|
DestructionSetting: destructionSettingStr, |
|
|
|
DirectPushReward: req.BasicSetting.DirectPushReward, |
|
|
|
DirectPushReward: directPushRewardStr, |
|
|
|
PriceSetting: priceSettingStr, |
|
|
|
VideoRewardIsOpen: req.VideoRewardSetting.VideoRewardIsOpen, |
|
|
|
VideoRewardSystem: videoRewardSystemStr, |
|
|
|