“集群设置 -- 网站设置”增加“允许记录访问日志”选项

This commit is contained in:
刘祥超
2023-07-05 15:29:11 +08:00
parent 77521112d0
commit a38dd1cef8
4 changed files with 7 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ func (this *NodeClusterService) CreateNodeCluster(ctx context.Context, req *pb.C
}
// 全局服务配置
var serverGlobalConfig = serverconfigs.DefaultGlobalServerConfig()
var serverGlobalConfig = serverconfigs.NewGlobalServerConfig()
if len(req.GlobalServerConfigJSON) > 0 {
err = json.Unmarshal(req.GlobalServerConfigJSON, serverGlobalConfig)
if err != nil {
@@ -1444,7 +1444,7 @@ func (this *NodeClusterService) UpdateNodeClusterGlobalServerConfig(ctx context.
return nil, err
}
var config = serverconfigs.DefaultGlobalServerConfig()
var config = serverconfigs.NewGlobalServerConfig()
err = json.Unmarshal(req.GlobalServerConfigJSON, config)
if err != nil {
return nil, err