feat(publish): 增加等级与特殊皮肤价格修正

This commit is contained in:
yml
2026-11-24 20:33:22 +08:00
parent 9283a68143
commit 3ac4052ac5
14 changed files with 1744 additions and 606 deletions
@@ -3,9 +3,9 @@ package systemconfig
import "encoding/json"
const (
// publishOptionsSchemaVersion 发布选项结构版本;v2 新增「是否解锁德穆兰」开关(默认关闭),
// 并把「下赛季是否购买通行证」默认打开。
publishOptionsSchemaVersion = 2
// publishOptionsSchemaVersion 发布选项结构版本;v3 新增体力/负重命中比例修正
// 与皮肤分类特殊价格子集。
publishOptionsSchemaVersion = 3
publishOptionsConfigKey = "listing.publish_options"
)
@@ -20,13 +20,13 @@ func defaultPublishOptionsConfigValue() string {
func DefaultPublishOptions() PublishOptionsDTO {
return PublishOptionsDTO{
SchemaVersion: publishOptionsSchemaVersion,
UnlockDemulanEnabled: false,
NextSeasonPassEnabled: true,
ServerOptions: []string{"QQ", "微信", "Steam"},
UnlockDemulanEnabled: true,
NextSeasonPassEnabled: false,
ServerOptions: []string{"QQ", "微信"},
FaceOptions: []string{"是", "否"},
RankOptions: []string{"青铜", "白银", "黄金", "铂金", "钻石", "黑鹰", "三角洲巅峰"},
InsuranceOptions: []string{"2*1", "2*2", "2*3", "3*3"},
LevelOptions: []string{"1级", "2级", "3级", "4级", "5级", "6级", "7级"},
LevelOptions: []string{"4级", "5级", "6级", "7级"},
LoginMethodOptions: []string{"扫码", "账号密码"},
RegionOptions: []string{
"北京", "天津", "河北", "山西", "内蒙古", "辽宁", "吉林", "黑龙江",
@@ -40,38 +40,50 @@ func DefaultPublishOptions() PublishOptionsDTO {
Key: "melee",
Title: "近战皮肤",
Options: []string{
"坠星者", "暗星", "龙牙", "信条", "怜悯", "赤枭", "影锋", "黑海", "北极星", "电锯惊魂", "处刑者",
"坠星者", "暗星", "龙牙", "信条", "怜悯", "赤霄", "影锋", "黑海", "北极星", "电锯惊魂", "处刑者",
"挽歌", "重塑", "黑伤",
},
SpecialPriceOptions: []string{"龙牙", "赤霄"},
SpecialRatioAdjustment: -1,
},
{
Key: "operatorGold",
Title: "干员金皮",
Key: "operatorGold",
Title: "干员金皮",
SpecialPriceOptions: []string{},
SpecialRatioAdjustment: -1,
Options: []string{
"露娜-古墓丽影联动", "蛊-不羁人生", "红狼-电锯惊魂", "露娜-金牌射手",
"牧羊人-街头之星", "蜂医-危险物质", "蜂医-送葬人", "无名-夜鹰",
"威龙-壮志凌云", "威龙-蛟龙特战队", "威龙-铁面判官", "威龙-吴彦祖",
"疾风-西部往事", "骇爪-骇客少女", "比特-沙漠孤星",
},
},
{
Key: "operatorRed",
Title: "干员红皮",
Key: "operatorRed",
Title: "干员红皮",
SpecialPriceOptions: []string{},
SpecialRatioAdjustment: -1,
Options: []string{
"凌霄成卫", "蚀金玫瑰", "水墨云图", "午夜邮差", "天际线", "维什戴尔",
"狂怒", "安魂牧羊人", "雷霆之息",
},
},
{
Key: "weapon",
Title: "武器皮肤",
Key: "weapon",
Title: "武器皮肤",
SpecialPriceOptions: []string{},
SpecialRatioAdjustment: -1,
Options: []string{
"M7棱镜攻势S2", "腾龙气象感应", "MP7电玩高手S2", "M250电玩高手S2",
"AS Val悬赏令", "K416命运", "M4A1棱镜攻势", "SCAR-H电玩高手",
"QBZ95王牌之剑", "AUG气象感应", "Vector美杜莎", "KC17-造物纪元",
"AKM-群星", "MK4冲锋枪-疾光魅影", "K437突击步枪-王者之剑", "禁卫14",
},
},
},
QuantityItems: []PublishQuantityItem{
{Key: "level6Ammo", Label: "6级弹", Price: "0.1元/发", Placeholder: "按单发数量填写,60发=6元"},
{Key: "awmAmmo", Label: "AWM子弹", Price: "0.6元/发"},
{Key: "awmAmmo", Label: "AWM子弹", Price: "0.7元/发"},
{Key: "barrettAmmo", Label: "巴雷特子弹", Price: "0.3元/发"},
{Key: "armor6", Label: "6甲", Price: "2.5元/个"},
{Key: "helmet6", Label: "6头", Price: "1.5元/个"},
@@ -84,7 +96,7 @@ func DefaultPublishOptions() PublishOptionsDTO {
{Key: "coin", Label: "纯币截图", Required: true, Hint: "请上传纯币截图(必传)"},
{Key: "gameId", Label: "游戏ID截图", Required: true, Hint: "请上传游戏ID截图(必传)"},
{Key: "totalAsset", Label: "总资产截图", Required: true, Hint: "请上传总资产截图(必传)"},
{Key: "tencentSecurity", Label: "腾讯安全中心截图", Required: false, Hint: "有封禁记录时必传"},
{Key: "tencentSecurity", Label: "腾讯安全中心截图", Required: true, Hint: "腾讯安全中心截图"},
{Key: "skin", Label: "皮肤截图", Required: false, Hint: "请上传皮肤截图(选传)"},
},
BanRecordOptions: []string{"无封禁记录", "有封禁记录"},
@@ -99,22 +111,22 @@ func DefaultPublishOptions() PublishOptionsDTO {
2. 系统推荐押金未覆盖项目(需自行评估)
请注意,系统推荐押金暂不包含以下资产类型,您需要根据实际情况额外评估其价值:
请注意,系统推荐押金只包含了皮肤评估的价值!暂不包含以下资产类型,您需要根据实际情况额外评估其价值:
- 收藏室内的稀有物品
- 其他具有个人纪念意义或情怀价值的虚拟资产(如限定称号、绝版道具等)
3. 未出租价值折算规则(重点)
请在「收藏室及不出租部分哈弗币价值」中填写收藏室等不出租资产折合的哈弗币。系统按 1元=50万 计算参考值,并自动更新推荐押金:低于参考值时覆盖为参考值,否则追加参考值的 50%。
请在「收藏室及不出租部分哈弗币价值,如150m纯币只出50m纯币」中填写收藏室等不出租资产折合的哈弗币。系统按 1元=50万 计算参考值,并自动更新推荐押金:低于参考值时覆盖为参考值,否则追加参考值的 50%。
示例:基础推荐押金 200 元、收藏室价值 200M → 参考值 400 元,200<400,推荐押金更新为 400 元。
目的:该举能够有效覆盖租客可能出现的洗号、违规操作导致账号封禁等风险带来的损失,为您提供充分的风险缓冲。
目的:该举能够有效覆盖租客可能出现的洗号、违规操作导致账号封禁等风险带来的损失,为您提供充分的风险缓冲。也不用担心押金高账号出不去,只要其账号配置是符合押金的,一样的可以正常租出。
4. 额外保障选项
若您在设置足额押金后仍感不放心,可选择购买平台提供的《全额包赔服务》。一旦发生封号损失,将获得账号市场价值的全额赔付,让您的出租过程后顾无忧。`,
若您在设置足额押金后仍感不放心,可选择购买平台提供的《无忧租号保险》。一旦发生封号损失,将获得账号市场价值的全额赔付,让您的出租过程后顾无忧。但选择《无忧租号保险》,在结算是会产生额外保险服务费,具体可阅读《无忧租号保险》条例。`,
PremiumZoneTooltip: `极品专区是面向优质号主和高价值账号的专属展示区。
1. 发布条件:仅已认证且有效的优质号主可以开启;未开通时需先缴纳平台要求的信用保证金并完成优质号主认证。
@@ -122,26 +134,33 @@ func DefaultPublishOptions() PublishOptionsDTO {
3. 价格规则:系统会按后台配置在基础比例上计算极品专区专享比例,审核页展示的最终价格通过后不再改价。
4. 保险服务:可选择无忧租号保险,服务费率按优质号主及极品专区的当前配置执行,并按实际纯币结算金额计算,额外物品不计入保险基数。
5. 责任说明:开启专区不会免除商品审核、资料真实性及发布协议中的责任,请如实填写账号资产与出租条件。`,
CompensationNote: "普通赔付方案如下:账号在租期内或祖期外出现封禁,追回、洗号等情况,最高可获赔全款相金+押金\n\n无忧保险赔付方案:按账号市场价值进行赔付(可参照螃蟹,盼之等主流交易平台)。无忧保险服务费按实际纯币结算金额计算,额外物品不计入计费基数;具体费率以当前配置为准。押金须达到推荐押金方可购买。",
CompensationNote: "普通赔付方案如下:账号在租期内或祖期外出现封禁30天和十年等情况,最高可获赔全款相金+押金\n\n无忧保险赔付方案:按账号市场价值进行赔付(可参照螃蟹,盼之等主流交易平台)。无忧保险服务费按实际纯币结算金额计算,额外物品不计入计费基数;具体费率以当前配置为准。押金须达到推荐押金以上方可购买。",
PricePlaceholder: "填写币数、保险、体力和负重后自动计算;发布总价=纯币基础价+额外消耗品",
RatioDescription: "1:xx 表示 1 元人民币(RMB)等价兑换 xx 万哈夫币",
},
DepositRecommend: PublishDepositRecommend{
BaseAmount: 50,
BaseAmount: 200,
SkinGroupRules: []PublishDepositSkinGroupRule{
{GroupKey: "melee", Label: "刀皮", AmountPerItem: 5},
{GroupKey: "operatorGold", Label: "干员金皮", AmountPerItem: 10},
{GroupKey: "operatorRed", Label: "干员红皮", AmountPerItem: 30},
{GroupKey: "melee", Label: "刀皮", AmountPerItem: 150},
{GroupKey: "operatorGold", Label: "干员金皮", AmountPerItem: 0},
{GroupKey: "operatorRed", Label: "干员红皮", AmountPerItem: 150},
{GroupKey: "weapon", Label: "武器皮肤", AmountPerItem: 200},
},
},
RatioConfig: PublishRatioConfig{
QualityOwnerRatioDiscount: 1,
PremiumReviewRatioMarkup: 1,
PremiumReviewRatioMarkup: 0,
InsuranceBaseRatios: []PublishInsuranceBaseRatio{
{Insurance: "3*3", Ratio: 40},
{Insurance: "2*3", Ratio: 42},
{Insurance: "2*2", Ratio: 47},
{Insurance: "2*1", Ratio: 48},
{Insurance: "3*3", Ratio: 45},
{Insurance: "2*3", Ratio: 47},
{Insurance: "2*2", Ratio: 51},
{Insurance: "2*1", Ratio: 51},
},
LevelRatioRules: []PublishLevelRatioRule{
{Key: "stamina7", Field: "stamina", Level: "7级", RatioAdjustment: -1},
{Key: "stamina6", Field: "stamina", Level: "6级", RatioAdjustment: -0.5},
{Key: "load7", Field: "load", Level: "7级", RatioAdjustment: -1},
{Key: "load6", Field: "load", Level: "6级", RatioAdjustment: -0.5},
},
ConfigItems: []PublishRatioConfigItem{
{Key: "operatorRed", Label: "干员红皮", Kind: "skin_group", GroupKey: "operatorRed", MissingPenalty: 1},