diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index b371f20..a1a9c79 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -5,7 +5,6 @@ import ( "HttpServer/redishandler" "common/logger" "fmt" - "io" "io/ioutil" "mysql" "os" @@ -103,7 +102,8 @@ func QueryAllAccount(w http.ResponseWriter, r *http.Request) { f, _ = os.Create(filename) //创建文件 mysql.QueryAllData(f) - io.Copy(f,r.Body) + //io.Copy(f,r.Body) + fmt.Fprint(w,f) } -- libgit2 0.21.0