Commit 7d9c133f63373fe3c1d6c7bd43d22664bca4ff2a

Authored by 陆恒
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 5 "HttpServer/redishandler"
6 6 "common/logger"
7 7 "fmt"
8   - "io"
9 8 "io/ioutil"
10 9 "mysql"
11 10 "os"
... ... @@ -103,7 +102,8 @@ func QueryAllAccount(w http.ResponseWriter, r *http.Request) {
103 102 f, _ = os.Create(filename) //创建文件
104 103  
105 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  
... ...