增加默认CC设置

This commit is contained in:
刘祥超
2023-03-26 12:41:01 +08:00
parent 3a3b5bca20
commit 9bf46af088

View File

@@ -500,7 +500,7 @@ func (this *HTTPWebDAO) ComposeWebConfig(tx *dbs.Tx, webId int64, isLocationOrGr
// CC
if teaconst.IsPlus && IsNotNull(web.Cc) {
var ccConfig = &serverconfigs.HTTPCCConfig{}
var ccConfig = serverconfigs.DefaultHTTPCCConfig()
err = json.Unmarshal(web.Cc, ccConfig)
if err != nil {
return nil, err