|
|
@@ -83,7 +83,7 @@ func GetEggEnergyBasic(c *gin.Context) { |
|
|
|
var exchangeRules md2.ExchangeRulesStruct |
|
|
|
utils.Unserialize([]byte(basicSettings.ExchangeRules), &exchangeRules) |
|
|
|
|
|
|
|
var rewardSystem md2.RewardSystemStruct |
|
|
|
var rewardSystem []md2.RewardSystemStruct |
|
|
|
utils.Unserialize([]byte(basicSettings.RewardSystem), &rewardSystem) |
|
|
|
|
|
|
|
var newUserRewardRules md2.NewUserRewardRules |
|
|
@@ -125,37 +125,12 @@ func GetEggEnergyBasic(c *gin.Context) { |
|
|
|
TotalUserForPerson: basicSettings.TotalUserForPerson, |
|
|
|
TotalUserForTeam: basicSettings.TotalUserForTeam, |
|
|
|
}, |
|
|
|
DestructionSetting: md2.DestructionSettingStruct{ |
|
|
|
DestructionQuantity: destructionSetting.DestructionQuantity, |
|
|
|
PublicWelfareAndCharity: destructionSetting.PublicWelfareAndCharity, |
|
|
|
DevelopmentCommittee: destructionSetting.DevelopmentCommittee, |
|
|
|
StarLevelDividends: destructionSetting.StarLevelDividends, |
|
|
|
MarketplaceMerchant: destructionSetting.MarketplaceMerchant, |
|
|
|
CommunityDividends: destructionSetting.CommunityDividends, |
|
|
|
}, |
|
|
|
PriceSetting: md2.PriceSettingStruct{ |
|
|
|
PriceHigherThanValue: priceSetting.PriceHigherThanValue, |
|
|
|
MarketplaceMerchantsNumsExchangeMarketplaceMerchantsFundValue: priceSetting.MarketplaceMerchantsNumsExchangeMarketplaceMerchantsFundValue, |
|
|
|
PriceBelowValue: priceSetting.PriceBelowValue, |
|
|
|
MarketplaceMerchantsFundExchangeMarketplaceMerchantsNumsValue: priceSetting.MarketplaceMerchantsFundExchangeMarketplaceMerchantsNumsValue, |
|
|
|
}, |
|
|
|
ExchangeRules: md2.ExchangeRulesStruct{ |
|
|
|
AutoExchangeNumsByPerson: exchangeRules.AutoExchangeNumsByPerson, |
|
|
|
AutoExchangeRateByPerson: exchangeRules.AutoExchangeRateByPerson, |
|
|
|
AutoExchangeNumsByTeam: exchangeRules.AutoExchangeNumsByTeam, |
|
|
|
AutoExchangeRateByTeam: exchangeRules.AutoExchangeRateByTeam, |
|
|
|
}, |
|
|
|
RewardSystem: md2.RewardSystemStruct{ |
|
|
|
Level: rewardSystem.Level, |
|
|
|
RewardCondition: rewardSystem.RewardCondition, |
|
|
|
RewardValue: rewardSystem.RewardValue, |
|
|
|
}, |
|
|
|
NewUserIncentiveRules: md2.NewUserRewardRules{ |
|
|
|
InviteUserRewardValue: newUserRewardRules.InviteUserRewardValue, |
|
|
|
RewardCoefficient: newUserRewardRules.RewardCoefficient, |
|
|
|
ContinueDays: newUserRewardRules.ContinueDays, |
|
|
|
}, |
|
|
|
SystemID: basicSettings.Id, |
|
|
|
DestructionSetting: destructionSetting, |
|
|
|
PriceSetting: priceSetting, |
|
|
|
ExchangeRules: exchangeRules, |
|
|
|
RewardSystem: rewardSystem, |
|
|
|
NewUserIncentiveRules: newUserRewardRules, |
|
|
|
SystemID: basicSettings.Id, |
|
|
|
} |
|
|
|
|
|
|
|
e.OutSuc(c, resp, nil) |
|
|
|