//返回商店物品列表 private byte[] ShopListResponseEncodeParser(object message) { string jsonStr = JsonConvert.SerializeObject(message, Formatting.None); byte[] messageBytes = Encoding.UTF8.GetBytes(jsonStr); messageBytes = AESCrypto.Encrypt(messageBytes, SecretKey, SecretVector); messageBytes = SnappySharp.Compress(messageBytes); return(messageBytes); }