智能押金与33优化
This commit is contained in:
@@ -229,6 +229,12 @@ func normalizePublishOptions(options *PublishOptionsDTO) {
|
||||
if options.PriceConfig.RatioDescription == "" {
|
||||
options.PriceConfig.RatioDescription = defaults.PriceConfig.RatioDescription
|
||||
}
|
||||
if options.DepositRecommend.BaseAmount <= 0 {
|
||||
options.DepositRecommend.BaseAmount = defaults.DepositRecommend.BaseAmount
|
||||
}
|
||||
if len(options.DepositRecommend.SkinGroupRules) == 0 {
|
||||
options.DepositRecommend.SkinGroupRules = defaults.DepositRecommend.SkinGroupRules
|
||||
}
|
||||
if len(options.RatioConfig.InsuranceBaseRatios) == 0 {
|
||||
options.RatioConfig.InsuranceBaseRatios = defaults.RatioConfig.InsuranceBaseRatios
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user