服务增加是否合并URL中的多余分隔符选项

This commit is contained in:
GoEdgeLab
2021-11-24 14:49:51 +08:00
parent e435ec3624
commit f6fb8c7598

View File

@@ -1062,7 +1062,12 @@ func (this *HTTPWebDAO) UpdateWebCommon(tx *dbs.Tx, webId int64, mergeSlashes bo
var op = NewHTTPWebOperator() var op = NewHTTPWebOperator()
op.Id = webId op.Id = webId
op.MergeSlashes = mergeSlashes op.MergeSlashes = mergeSlashes
return this.Save(tx, op) err := this.Save(tx, op)
if err != nil {
return err
}
return this.NotifyUpdate(tx, webId)
} }
// NotifyUpdate 通知更新 // NotifyUpdate 通知更新