Commit 7d9c133f63373fe3c1d6c7bd43d22664bca4ff2a
1 parent
8a8b9edf
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
| @@ -5,7 +5,6 @@ import ( | @@ -5,7 +5,6 @@ import ( | ||
| 5 | "HttpServer/redishandler" | 5 | "HttpServer/redishandler" |
| 6 | "common/logger" | 6 | "common/logger" |
| 7 | "fmt" | 7 | "fmt" |
| 8 | - "io" | ||
| 9 | "io/ioutil" | 8 | "io/ioutil" |
| 10 | "mysql" | 9 | "mysql" |
| 11 | "os" | 10 | "os" |
| @@ -103,7 +102,8 @@ func QueryAllAccount(w http.ResponseWriter, r *http.Request) { | @@ -103,7 +102,8 @@ func QueryAllAccount(w http.ResponseWriter, r *http.Request) { | ||
| 103 | f, _ = os.Create(filename) //创建文件 | 102 | f, _ = os.Create(filename) //创建文件 |
| 104 | 103 | ||
| 105 | mysql.QueryAllData(f) | 104 | mysql.QueryAllData(f) |
| 106 | - io.Copy(f,r.Body) | 105 | + //io.Copy(f,r.Body) |
| 106 | + fmt.Fprint(w,f) | ||
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | 109 |