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