fix(systemconfig): 首页入口展示开关与发布选项编码修复
This commit is contained in:
@@ -26,6 +26,13 @@ func (s *Service) Update(ctx context.Context, actorID uint64, key string, req Up
|
||||
return nil, ErrInvalidConfig
|
||||
}
|
||||
}
|
||||
if key == publishOptionsConfigKey {
|
||||
value, err := normalizePublishOptionsValue(req.Value)
|
||||
if err != nil {
|
||||
return nil, ErrInvalidConfig
|
||||
}
|
||||
req.Value = value
|
||||
}
|
||||
if key == rentergrowth.ConfigKey {
|
||||
cfg, err := rentergrowth.ParseConfigValue(req.Value)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user