优化烽火地带最小等级
This commit is contained in:
@@ -49,6 +49,7 @@ type PublishOptionsDTO struct {
|
||||
ScreenshotSlots []PublishScreenshotSlot `json:"screenshot_slots"`
|
||||
BanRecordOptions []string `json:"ban_record_options"`
|
||||
BanEvidenceOptions []string `json:"ban_evidence_options"`
|
||||
FireLevelMin int `json:"fire_level_min"`
|
||||
PriceConfig PublishPriceConfig `json:"price_config"`
|
||||
RatioConfig PublishRatioConfig `json:"ratio_config"`
|
||||
}
|
||||
|
||||
@@ -81,6 +81,7 @@ func DefaultPublishOptions() PublishOptionsDTO {
|
||||
},
|
||||
BanRecordOptions: []string{"无封禁记录", "有封禁记录"},
|
||||
BanEvidenceOptions: []string{"有封禁记录"},
|
||||
FireLevelMin: 38,
|
||||
PriceConfig: PublishPriceConfig{
|
||||
DepositPlaceholder: "温馨提示:本押金用于保障账号安全。若买家在租用期间,使用非纯币类道具/资源(如消耗品、材料等)或导致账号被封禁,相关损失将直接从押金中扣除进行赔付。押金过高会延长出租等待时间(请自行衡量)感谢理解。",
|
||||
PricePlaceholder: "填写币数、保险、体力和负重后自动计算",
|
||||
|
||||
@@ -193,6 +193,9 @@ func normalizePublishOptions(options *PublishOptionsDTO) {
|
||||
if len(options.BanEvidenceOptions) == 0 {
|
||||
options.BanEvidenceOptions = defaults.BanEvidenceOptions
|
||||
}
|
||||
if options.FireLevelMin <= 0 {
|
||||
options.FireLevelMin = defaults.FireLevelMin
|
||||
}
|
||||
if options.PriceConfig.DepositPlaceholder == "" {
|
||||
options.PriceConfig.DepositPlaceholder = defaults.PriceConfig.DepositPlaceholder
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user