实现Web静态文件分发

This commit is contained in:
刘祥超
2020-09-26 11:21:43 +08:00
parent 50731984ec
commit 8b11e7172a
4 changed files with 24 additions and 10 deletions

View File

@@ -143,7 +143,7 @@ func (this *HTTPLocationService) FindAndInitHTTPLocationWebConfig(ctx context.Co
}
if webId <= 0 {
webId, err = models.SharedHTTPWebDAO.CreateWeb("")
webId, err = models.SharedHTTPWebDAO.CreateWeb(nil)
if err != nil {
return nil, err
}