fix(systemconfig): 首页入口展示开关与发布选项编码修复
This commit is contained in:
@@ -2,7 +2,10 @@ package systemconfig
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
const publishOptionsConfigKey = "listing.publish_options"
|
||||
const (
|
||||
publishOptionsConfigKey = "listing.publish_options"
|
||||
publishOptionsSchemaVersion = 1
|
||||
)
|
||||
|
||||
func defaultPublishOptionsConfigValue() string {
|
||||
raw, err := json.Marshal(DefaultPublishOptions())
|
||||
@@ -14,6 +17,7 @@ func defaultPublishOptionsConfigValue() string {
|
||||
|
||||
func DefaultPublishOptions() PublishOptionsDTO {
|
||||
return PublishOptionsDTO{
|
||||
SchemaVersion: publishOptionsSchemaVersion,
|
||||
NextSeasonPassEnabled: false,
|
||||
ServerOptions: []string{"QQ", "微信", "Steam"},
|
||||
FaceOptions: []string{"是", "否"},
|
||||
|
||||
Reference in New Issue
Block a user