public static byte[] StatSvcRegister() { var bytes = JceStruct.writeFlag(JceStruct.JceType.TYPE_STRUCT_BEGIN, 0); bytes = bytes.Concat(JceStruct.writeLong(API.QQ.LongQQ, 0)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(7, 1)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 2)).ToArray(); bytes = bytes.Concat(JceStruct.writeString("", 3)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong((long)API.OnlineStaus.hide, 4)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 5)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 6)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 7)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 8)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 9)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 10)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(21, 11)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(1, 12)).ToArray(); bytes = bytes.Concat(JceStruct.writeString("", 13)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 14)).ToArray(); bytes = bytes.Concat(JceStruct.writeSimpleList(API.Device.GUIDBytes, 16)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(2052, 17)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 18)).ToArray(); bytes = bytes.Concat(JceStruct.writeString(API.Device.model, 19)).ToArray(); bytes = bytes.Concat(JceStruct.writeString(API.Device.model, 20)).ToArray(); bytes = bytes.Concat(JceStruct.writeString(API.Device.os_version, 21)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(1, 22)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(14798, 23)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 24)).ToArray(); bytes = bytes.Concat(JceStruct.writeLong(0, 26)).ToArray(); bytes = bytes.Concat(JceStruct.writeInt(API.IPToInt32("111.30.181.202"), 27)).ToArray(); bytes = bytes.Concat(JceStruct.writeFlag(JceStruct.JceType.TYPE_STRUCT_END, 6)).ToArray(); Dictionary <object, object> dic = new Dictionary <object, object>() { { "SvcReqRegister", bytes } }; bytes = JceStruct.writeMap(dic, 0); bytes = Pack_HeadJce(0, "PushService", "SvcReqRegister", bytes); //Debug.Print("StatSvcRegister" + Environment.NewLine + BitConverter.ToString(bytes).Replace("-", " ")) bytes = API.PackCmdHeader("StatSvc.register", bytes); HashTea Hash = new HashTea(); byte[] EncodeByte = Hash.HashTEA(bytes, API.UN_Tlv.T305_SessionKey, 0, true); bytes = new byte[] { 0x0, 0x0, 0x0, 0xB, 1 }; bytes = bytes.Concat(BitConverter.GetBytes(API.QQ.mRequestID + 1).Reverse().ToArray()).ToArray(); bytes = bytes.Concat(new byte[] { 0x0 }).ToArray(); bytes = bytes.Concat(API.QQ.UTF8).ToArray(); bytes = bytes.Concat(EncodeByte).ToArray(); bytes = BitConverter.GetBytes(bytes.Length + 4).Reverse().ToArray().Concat(bytes).ToArray(); API.TClient.SendData(bytes); return(bytes); }