|
|
@@ -43,10 +43,7 @@ func (ap *authPackage)toBytes()[]byte{
|
|
|
buf.Write(uint32ToBytes(len(ap.Content)))
|
|
|
buf.Write(ap.Content)
|
|
|
|
|
|
- bytess := buf.Bytes()
|
|
|
- fmt.Println(bytess)
|
|
|
-
|
|
|
- return bytess
|
|
|
+ return buf.Bytes()
|
|
|
}
|
|
|
|
|
|
type TcpClient struct {
|
|
|
@@ -184,7 +181,6 @@ func(c *TcpClient)Send(cmd string, bytess []byte){
|
|
|
func(c *TcpClient)SendToken(token *entitys.Token){
|
|
|
glog.Infoln("发送新建token")
|
|
|
bytess := tokenToBytes(token)
|
|
|
- fmt.Println(bytess)
|
|
|
c.Send(CMD_NEW, bytess)
|
|
|
}
|
|
|
|
|
|
@@ -196,8 +192,6 @@ func(c *TcpClient)newHandler()error{
|
|
|
fmt.Println("读取token内容错误", err.Error())
|
|
|
return err
|
|
|
}
|
|
|
- fmt.Println(len(bytess))
|
|
|
- fmt.Println(bytess)
|
|
|
// 新建
|
|
|
token, err := bytesToToken(bytess)
|
|
|
if err != nil{
|