public string Encode(string data, Message.BaseMessageInfo info) { if (string.IsNullOrWhiteSpace(data) || string.IsNullOrWhiteSpace(info.MessageId)) { return(data); } return(CommonCryptoService.Encrypt_DES(CommonExt.DynamicToJsonString(info.Data), info.MessageId)); }