智能押金与33优化

This commit is contained in:
yml
2026-05-24 23:19:37 +08:00
parent fd73bb39be
commit 95ded72b66
8 changed files with 350 additions and 13 deletions
@@ -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
}