mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-27 18:33:39 +08:00
增加默认CC设置
This commit is contained in:
@@ -500,7 +500,7 @@ func (this *HTTPWebDAO) ComposeWebConfig(tx *dbs.Tx, webId int64, isLocationOrGr
|
|||||||
|
|
||||||
// CC
|
// CC
|
||||||
if teaconst.IsPlus && IsNotNull(web.Cc) {
|
if teaconst.IsPlus && IsNotNull(web.Cc) {
|
||||||
var ccConfig = &serverconfigs.HTTPCCConfig{}
|
var ccConfig = serverconfigs.DefaultHTTPCCConfig()
|
||||||
err = json.Unmarshal(web.Cc, ccConfig)
|
err = json.Unmarshal(web.Cc, ccConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user