[修复]重复登录时返回数据异常
This commit is contained in:
@@ -9,7 +9,7 @@ const (
|
||||
//最大头像大小
|
||||
max_photo_size uint32 = 0x400000 //4M
|
||||
//服务器地址
|
||||
server_addr string = "mattuy.top:3727"
|
||||
server_addr string = "localhost:3727"
|
||||
)
|
||||
|
||||
//用户组
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user