删掉租期相关错误东西
This commit is contained in:
@@ -83,7 +83,6 @@ type PublishRatioConfig struct {
|
||||
InsuranceBaseRatios []PublishInsuranceBaseRatio `json:"insurance_base_ratios"`
|
||||
ConfigItems []PublishRatioConfigItem `json:"config_items"`
|
||||
CoinCorrections []PublishCoinCorrection `json:"coin_corrections"`
|
||||
RentRules []PublishRentRule `json:"rent_rules"`
|
||||
}
|
||||
|
||||
type PublishInsuranceBaseRatio struct {
|
||||
@@ -103,8 +102,3 @@ type PublishCoinCorrection struct {
|
||||
ThresholdM float64 `json:"threshold_m"`
|
||||
Correction float64 `json:"correction"`
|
||||
}
|
||||
|
||||
type PublishRentRule struct {
|
||||
ThresholdM float64 `json:"threshold_m"`
|
||||
Days int `json:"days"`
|
||||
}
|
||||
|
||||
@@ -106,11 +106,6 @@ func DefaultPublishOptions() PublishOptionsDTO {
|
||||
{ThresholdM: 380, Correction: 4},
|
||||
{ThresholdM: 530, Correction: 5},
|
||||
},
|
||||
RentRules: []PublishRentRule{
|
||||
{ThresholdM: 300, Days: 7},
|
||||
{ThresholdM: 100, Days: 3},
|
||||
{ThresholdM: 0, Days: 1},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ var defaultConfigs = []defaultConfig{
|
||||
{Key: "handoff.owner_submit_timeout_minutes", Value: "30", Description: "号主待交接超时分钟数"},
|
||||
{Key: "handoff.renter_confirm_timeout_minutes", Value: "30", Description: "租客待确认收号超时分钟数"},
|
||||
{Key: "handoff.owner_return_confirm_timeout_minutes", Value: "120", Description: "号主待确认归还超时分钟数"},
|
||||
{Key: "order.return_overdue_grace_minutes", Value: "10", Description: "租期到期后归还宽限分钟数"},
|
||||
{Key: "order.return_overdue_grace_minutes", Value: "10", Description: "预计截止后归还宽限分钟数"},
|
||||
{Key: "deposit.min_amount", Value: "50", Description: "发布租号最低押金"},
|
||||
{Key: "risk.sms_limit_per_phone_hour", Value: "5", Description: "单手机号每小时短信验证码次数"},
|
||||
{Key: "risk.sms_limit_per_ip_hour", Value: "20", Description: "单 IP 每小时短信验证码次数"},
|
||||
|
||||
@@ -211,7 +211,4 @@ func normalizePublishOptions(options *PublishOptionsDTO) {
|
||||
if len(options.RatioConfig.CoinCorrections) == 0 {
|
||||
options.RatioConfig.CoinCorrections = defaults.RatioConfig.CoinCorrections
|
||||
}
|
||||
if len(options.RatioConfig.RentRules) == 0 {
|
||||
options.RatioConfig.RentRules = defaults.RatioConfig.RentRules
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user