[修复]重复登录时返回数据异常

This commit is contained in:
2018-12-20 16:58:21 +08:00
parent f8e4af399a
commit 2ec9e9f763
4 changed files with 31 additions and 22 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const (
//最大头像大小
max_photo_size uint32 = 0x400000 //4M
//服务器地址
server_addr string = "mattuy.top:3727"
server_addr string = "localhost:3727"
)
//用户组
+1 -1
View File
@@ -32,7 +32,7 @@ func NewSession() *Session {
tcpAddr, _ := net.ResolveTCPAddr("tcp", server_addr)
conn, err := net.DialTCP("tcp", nil, tcpAddr)
if err != nil {
PrintError("连接服务器失败")
PrintError("连接服务器失败" + err.Error())
return nil
}
var session = new(Session)