perf:附件不再使用绝对路径

pull/425/head
lifei6671 2018-11-14 19:03:27 +08:00
parent 4d0b132200
commit a95ea86648
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ func URLFor(endpoint string, values ...interface{}) string {
pathUrl := beego.URLFor(endpoint, values ...) pathUrl := beego.URLFor(endpoint, values ...)
if baseUrl == "" { if baseUrl == "" {
baseUrl = BaseUrl baseUrl = "/"
} }
if strings.HasPrefix(pathUrl, "http://") { if strings.HasPrefix(pathUrl, "http://") {
return pathUrl return pathUrl