|
|
@@ -341,7 +341,6 @@ func writeUInt64(conn net.Conn, v uint64)error{
|
|
|
// 读取uint64
|
|
|
func readStringByBytes(bytess []byte)(string, int, error) {
|
|
|
size := binary.BigEndian.Uint32(bytess)
|
|
|
- fmt.Println("----->", size)
|
|
|
return string(bytess[4 : 4+size]), int(size), nil
|
|
|
}
|
|
|
|
|
|
@@ -403,8 +402,6 @@ func bytesToToken(content []byte)(*entitys.Token, error){
|
|
|
token.TimeStamp = binary.BigEndian.Uint64(content[index:])
|
|
|
index += 8
|
|
|
|
|
|
- fmt.Println("---->index", index)
|
|
|
-
|
|
|
fmt.Println("读取ServerIp")
|
|
|
token.ServerIp, size, err = readStringByBytes(content[index:])
|
|
|
if err != nil{
|