diff --git a/fssc/internal/handler/handler.go b/fssc/internal/handler/handler.go index 693f9cb..7f84e28 100644 --- a/fssc/internal/handler/handler.go +++ b/fssc/internal/handler/handler.go @@ -161,7 +161,7 @@ func SendZip(w http.ResponseWriter, r *http.Request) { fmt.Println("archive is not exist!!!") } // 执行完 跳转到 首页 - http.Redirect(w, r, "/", http.StatusFound) + //http.Redirect(w, r, "/", http.StatusFound) } // 发送拦截 diff --git a/fssc/internal/handler/webconsole.go b/fssc/internal/handler/webconsole.go index 52846e8..4f22f38 100644 --- a/fssc/internal/handler/webconsole.go +++ b/fssc/internal/handler/webconsole.go @@ -20,6 +20,7 @@ func WebConsole(w http.ResponseWriter, r *http.Request) { if urlpath == "Li4=" { urlpath = "" } + //文件名 fname := r.URL.Query().Get("f") //转码 @@ -39,6 +40,7 @@ func WebConsole(w http.ResponseWriter, r *http.Request) { downloadPath := filepath.Join(filepath.Base(config.G.FilePath), abupath) // 相对路径 relpath := filepath.Join(abupath, "../") + fmt.Printf("relpath is %s\n", relpath) // fileInfo, err := os.Stat(realFilePath) if err != nil { diff --git a/fssc/web/wbconsole.tmpl b/fssc/web/wbconsole.tmpl index 19fe120..a2a341c 100644 --- a/fssc/web/wbconsole.tmpl +++ b/fssc/web/wbconsole.tmpl @@ -64,7 +64,7 @@