/// <summary> /// 设置消息加密方式 /// </summary> /// <param name="encodingAESType"></param> /// <param name="infoText"></param> private static void SetEncodingAESType(EncodingAESType encodingAESType, string infoText) { switch (infoText) { case "明文模式": encodingAESType = EncodingAESType.明文模式; break; case "兼容模式": encodingAESType = EncodingAESType.兼容模式; break; case "安全模式": encodingAESType = EncodingAESType.安全模式; break; default: break; } }