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

This commit is contained in:
刘祥超
2021-11-24 14:49:51 +08:00
parent 79823f4317
commit fd3823255c

View File

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