فهرست منبع

😁调整优化代码 !551 感谢@xjj_0906

zuohuaijun 3 سال پیش
والد
کامیت
e19c6b2389

+ 1 - 1
Admin.NET/Admin.NET.Application/Configuration/App.json

@@ -2,7 +2,7 @@
     "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
 
     "Urls": "https://*:44326;http://*:44325", // 配置默认端口
-    "https_port": 44326, // 指定 https 端口
+    "https_port": 44326,
 
     "AllowedHosts": "*",
 

+ 3 - 3
Admin.NET/Admin.NET.Core/Admin.NET.Core.csproj

@@ -18,9 +18,9 @@
     <PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
     <PackageReference Include="DotNetCore.Natasha.CSharp" Version="5.0.2" />
     <PackageReference Include="FluentEmail.Smtp" Version="3.0.2" />
-    <PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.8.5.8" />
-    <PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.8.5.8" />
-    <PackageReference Include="Furion.Pure" Version="4.8.5.8" />
+    <PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.8.5.10" />
+    <PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.8.5.10" />
+    <PackageReference Include="Furion.Pure" Version="4.8.5.10" />
     <PackageReference Include="Lazy.Captcha.Core" Version="2.0.1" />
     <PackageReference Include="Magicodes.IE.Excel" Version="2.7.4.2" />
     <PackageReference Include="Magicodes.IE.Pdf" Version="2.7.4.2" />

+ 2 - 2
Admin.NET/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs

@@ -87,7 +87,7 @@ public static class SqlSugarSetup
             if (sql.StartsWith("UPDATE", StringComparison.OrdinalIgnoreCase) || sql.StartsWith("INSERT", StringComparison.OrdinalIgnoreCase))
                 Console.ForegroundColor = ConsoleColor.Yellow;
             if (sql.StartsWith("DELETE", StringComparison.OrdinalIgnoreCase))
-                Console.ForegroundColor = ConsoleColor.Blue;
+                Console.ForegroundColor = ConsoleColor.Red;
             Console.WriteLine("【" + DateTime.Now + "——执行SQL】\r\n" + UtilMethods.GetSqlString(config.DbType, sql, pars) + "\r\n");
             Console.ForegroundColor = originColor;
             App.PrintToMiniProfiler("SqlSugar", "Info", sql + "\r\n" + db.Utilities.SerializeObject(pars.ToDictionary(it => it.ParameterName, it => it.Value)));
@@ -96,7 +96,7 @@ public static class SqlSugarSetup
         {
             if (ex.Parametres == null) return;
             var originColor = Console.ForegroundColor;
-            Console.ForegroundColor = ConsoleColor.Red;
+            Console.ForegroundColor = ConsoleColor.DarkRed;
             var pars = db.Utilities.SerializeObject(((SugarParameter[])ex.Parametres).ToDictionary(it => it.ParameterName, it => it.Value));
             Console.WriteLine("【" + DateTime.Now + "——错误SQL】\r\n" + UtilMethods.GetSqlString(config.DbType, ex.Sql, (SugarParameter[])ex.Parametres) + "\r\n");
             Console.ForegroundColor = originColor;