优化发布截图上传与押金提示
This commit is contained in:
@@ -97,6 +97,7 @@ type PublishScreenshotSlot struct {
|
||||
|
||||
type PublishPriceConfig struct {
|
||||
DepositPlaceholder string `json:"deposit_placeholder"`
|
||||
DepositHint string `json:"deposit_hint"`
|
||||
PricePlaceholder string `json:"price_placeholder"`
|
||||
RatioDescription string `json:"ratio_description"`
|
||||
}
|
||||
|
||||
@@ -84,6 +84,7 @@ func DefaultPublishOptions() PublishOptionsDTO {
|
||||
FireLevelMin: 38,
|
||||
PriceConfig: PublishPriceConfig{
|
||||
DepositPlaceholder: "温馨提示:本押金用于保障账号安全。若买家在租用期间,使用非纯币类道具/资源(如消耗品、材料等)或导致账号被封禁,相关损失将直接从押金中扣除进行赔付。押金过高会延长出租等待时间(请自行衡量)感谢理解。",
|
||||
DepositHint: "租客缴纳,封号必赔付",
|
||||
PricePlaceholder: "填写币数、保险、体力和负重后自动计算;发布总价=纯币基础价+额外消耗品",
|
||||
RatioDescription: "1:xx 表示 1 元人民币(RMB)等价兑换 xx 万哈夫币",
|
||||
},
|
||||
|
||||
@@ -347,6 +347,9 @@ func normalizePublishOptions(options *PublishOptionsDTO) {
|
||||
if options.PriceConfig.DepositPlaceholder == "" {
|
||||
options.PriceConfig.DepositPlaceholder = defaults.PriceConfig.DepositPlaceholder
|
||||
}
|
||||
if options.PriceConfig.DepositHint == "" {
|
||||
options.PriceConfig.DepositHint = defaults.PriceConfig.DepositHint
|
||||
}
|
||||
if options.PriceConfig.PricePlaceholder == "" {
|
||||
options.PriceConfig.PricePlaceholder = defaults.PriceConfig.PricePlaceholder
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user