From 902589804f29439de9f5bdf2521c524e28c95389 Mon Sep 17 00:00:00 2001
From: feng <279202647@qq.com>
Date: Fri, 10 Dec 2021 21:57:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=80=92=E5=BA=8F=E8=BF=94?=
=?UTF-8?q?=E5=9B=9E=E5=9B=A2=E9=98=9F=E5=95=86=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../HuiYan/teamitemsBusiness.cs | 3 +
.../齐越慧眼/齐越慧眼/DesEncoding.cs | 74 -------------------
2 files changed, 3 insertions(+), 74 deletions(-)
delete mode 100644 客户端/齐越慧眼/齐越慧眼/DesEncoding.cs
diff --git a/src/Coldairarrow.Business/HuiYan/teamitemsBusiness.cs b/src/Coldairarrow.Business/HuiYan/teamitemsBusiness.cs
index b9159e9..d632ea8 100644
--- a/src/Coldairarrow.Business/HuiYan/teamitemsBusiness.cs
+++ b/src/Coldairarrow.Business/HuiYan/teamitemsBusiness.cs
@@ -111,6 +111,9 @@ namespace Coldairarrow.Business.HuiYan
where = where.And(c => c.TeamId == _operator.TeamId);
+ input.SortField = "CreateTime";
+ input.SortType = "desc";
+
var list = q.Where(where).GetPageResultAsync(input).Result;
return list;
diff --git a/客户端/齐越慧眼/齐越慧眼/DesEncoding.cs b/客户端/齐越慧眼/齐越慧眼/DesEncoding.cs
deleted file mode 100644
index 4fe20b8..0000000
--- a/客户端/齐越慧眼/齐越慧眼/DesEncoding.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Security.Cryptography;
-using System.Text;
-
-namespace 齐越慧眼
-{
- public class DesEncoding
- {
- #region 加密解密法一
- //默认密钥向量
- private static byte[] Keys = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F };
-
- private static string encryptKey= "Feng23Fen#321Bhe";
-
- ///
- /// DES加密字符串
- ///
- /// 待加密的字符串
- /// 加密密钥,要求为16位
- /// 加密成功返回加密后的字符串,失败返回源串
-
- public static string EncryptDES(string encryptString)
- {
- try
- {
- byte[] rgbKey = Encoding.UTF8.GetBytes(encryptKey.Substring(0, 16));
- byte[] rgbIV = Keys;
- byte[] inputByteArray = Encoding.UTF8.GetBytes(encryptString);
- var DCSP = Aes.Create();
- MemoryStream mStream = new MemoryStream();
- CryptoStream cStream = new CryptoStream(mStream, DCSP.CreateEncryptor(rgbKey, rgbIV), CryptoStreamMode.Write);
- cStream.Write(inputByteArray, 0, inputByteArray.Length);
- cStream.FlushFinalBlock();
- return Convert.ToBase64String(mStream.ToArray());
- }
- catch (Exception ex)
- {
- return ex.Message + encryptString;
- }
- }
-
- ///
- /// DES解密字符串
- ///
- /// 待解密的字符串
- /// 解密密钥,要求为16位,和加密密钥相同
- /// 解密成功返回解密后的字符串,失败返源串
-
- public static string DecryptDES(string decryptString)
- {
- try
- {
- byte[] rgbKey = Encoding.UTF8.GetBytes(encryptKey.Substring(0, 16));
- byte[] rgbIV = Keys;
- byte[] inputByteArray = Convert.FromBase64String(decryptString);
- var DCSP = Aes.Create();
- MemoryStream mStream = new MemoryStream();
- CryptoStream cStream = new CryptoStream(mStream, DCSP.CreateDecryptor(rgbKey, rgbIV), CryptoStreamMode.Write);
- Byte[] inputByteArrays = new byte[inputByteArray.Length];
- cStream.Write(inputByteArray, 0, inputByteArray.Length);
- cStream.FlushFinalBlock();
- return Encoding.UTF8.GetString(mStream.ToArray());
- }
- catch (Exception ex)
- {
- return ex.Message + decryptString;
- }
-
- }
- #endregion
- }
-}