Commit a2520e5bcd6e94425f63da214fc840544b996c45

Authored by 陆恒
1 parent 8bf266d9
Exists in master

修复头像没有的bug

src/HttpServer/logic/logic.go
... ... @@ -260,6 +260,7 @@ func HandleQueryInvite(w http.ResponseWriter, data string) {
260 260 tmp.Uuid = val.Uuid
261 261 tmp.Nickname = val.NickName
262 262 tmp.Isfetched = val.IsFecthed
  263 + tmp.Headurl = val.HeadUrl
263 264 resp.Result.Data.Invite_data = append(resp.Result.Data.Invite_data,tmp)
264 265 }
265 266  
... ...
src/mysql/dbmysql.go
... ... @@ -199,7 +199,7 @@ func QueryInvite(uuid int) ([]QuerInviteDesc,error){
199 199 for rows.Next() {
200 200  
201 201 err = rows.Scan(&rtslice[k].NickName, &rtslice[k].HeadUrl) //不scan会导致连接不释放
202   - logger.Info("QueryInvite rtslice=%v",rtslice)
  202 + //logger.Info("QueryInvite rtslice=%v",rtslice)
203 203 if err != nil {
204 204 logger.Error("Scan failed,err:%v", err)
205 205 continue
... ...