Procházet zdrojové kódy

😎升级nuget包版本

zuohuaijun před 2 roky
rodič
revize
18e2f8ada8

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

@@ -21,9 +21,9 @@
     <PackageReference Include="AspNet.Security.OAuth.Gitee" Version="6.0.15" />
     <PackageReference Include="AspNet.Security.OAuth.Weixin" Version="6.0.15" />
     <PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
-    <PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.9.2.4" />
-    <PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.9.2.4" />
-    <PackageReference Include="Furion.Pure" Version="4.9.2.4" />
+    <PackageReference Include="Furion.Extras.Authentication.JwtBearer" Version="4.9.2.7" />
+    <PackageReference Include="Furion.Extras.ObjectMapper.Mapster" Version="4.9.2.7" />
+    <PackageReference Include="Furion.Pure" Version="4.9.2.7" />
     <PackageReference Include="IPTools.China" Version="1.6.0" />
     <PackageReference Include="Lazy.Captcha.Core" Version="2.0.6" />
     <PackageReference Include="Magicodes.IE.Excel" Version="2.7.5.1" />
@@ -33,13 +33,13 @@
     <PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="6.0.28" />
     <PackageReference Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="6.0.28" />
     <PackageReference Include="NEST" Version="7.17.5" />
-    <PackageReference Include="NewLife.Redis" Version="5.6.2024.304" />
+    <PackageReference Include="NewLife.Redis" Version="5.6.2024.402" />
     <PackageReference Include="OnceMi.AspNetCore.OSS" Version="1.1.9" />
     <PackageReference Include="RabbitMQ.Client" Version="6.8.1" />
     <PackageReference Include="SixLabors.ImageSharp.Web" Version="3.1.1" />
     <PackageReference Include="SKIT.FlurlHttpClient.Wechat.Api" Version="3.0.0" />
     <PackageReference Include="SKIT.FlurlHttpClient.Wechat.TenpayV3" Version="3.1.0" />
-    <PackageReference Include="SqlSugarCore" Version="5.1.4.149" />
+    <PackageReference Include="SqlSugarCore" Version="5.1.4.151" />
     <PackageReference Include="System.Linq.Dynamic.Core" Version="1.3.10" />
     <PackageReference Include="UAParser" Version="3.1.47" />
     <PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />

+ 8 - 8
Admin.NET/Admin.NET.Core/Service/APIJSON/SelectTable.cs

@@ -201,7 +201,7 @@ public class SelectTable : ISingleton
     }
 
     // 动态调用方法
-    private object ExecFunc(string funcname, object[] param, Type[] types)
+    private static object ExecFunc(string funcname, object[] param, Type[] types)
     {
         var method = typeof(FuncList).GetMethod(funcname);
         var reflector = method.GetReflector();
@@ -215,7 +215,7 @@ public class SelectTable : ISingleton
         var values = JObject.Parse(json);
         page = values["page"] == null ? page : int.Parse(values["page"].ToString());
         count = values["count"] == null ? count : int.Parse(values["count"].ToString());
-        query = values["query"] == null ? query : int.Parse(values["query"].ToString());
+        _ = values["query"] == null ? query : int.Parse(values["query"].ToString());
         values.Remove("page");
         values.Remove("count");
         subtable = _tableMapper.GetTableName(subtable);
@@ -558,7 +558,7 @@ public class SelectTable : ISingleton
 
     // "@having":"function0(...)?value0;function1(...)?value1;function2(...)?value2...",
     // SQL函数条件,一般和 @group一起用,函数一般在 @column里声明
-    private void ProcessHaving(JObject values, ISugarQueryable<ExpandoObject> tb)
+    private static void ProcessHaving(JObject values, ISugarQueryable<ExpandoObject> tb)
     {
         if (values["@having"].IsNullOrEmpty())
         {
@@ -588,13 +588,13 @@ public class SelectTable : ISingleton
                     model.ConditionalType = ConditionalType.LessThanOrEqual;
                     model.FieldValue = and.Split(new string[] { "<=" }, StringSplitOptions.RemoveEmptyEntries)[1];
                 }
-                else if (and.Contains(">"))
+                else if (and.Contains('>'))
                 {
                     model.FieldName = and.Split(new string[] { ">" }, StringSplitOptions.RemoveEmptyEntries)[0];
                     model.ConditionalType = ConditionalType.GreaterThan;
                     model.FieldValue = and.Split(new string[] { ">" }, StringSplitOptions.RemoveEmptyEntries)[1];
                 }
-                else if (and.Contains("<"))
+                else if (and.Contains('<'))
                 {
                     model.FieldName = and.Split(new string[] { "<" }, StringSplitOptions.RemoveEmptyEntries)[0];
                     model.ConditionalType = ConditionalType.LessThan;
@@ -606,7 +606,7 @@ public class SelectTable : ISingleton
                     model.ConditionalType = ConditionalType.NoEqual;
                     model.FieldValue = and.Split(new string[] { "!=" }, StringSplitOptions.RemoveEmptyEntries)[1];
                 }
-                else if (and.Contains("="))
+                else if (and.Contains('='))
                 {
                     model.FieldName = and.Split(new string[] { "=" }, StringSplitOptions.RemoveEmptyEntries)[0];
                     model.ConditionalType = ConditionalType.Equal;
@@ -670,7 +670,7 @@ public class SelectTable : ISingleton
     /// </summary>
     /// <param name="values"></param>
     /// <param name="tb"></param>
-    private void ProcessLimit(JObject values, ISugarQueryable<ExpandoObject> tb)
+    private static void ProcessLimit(JObject values, ISugarQueryable<ExpandoObject> tb)
     {
         if (values["@count"].IsNullOrEmpty())
         {
@@ -733,7 +733,7 @@ public class SelectTable : ISingleton
     /// <param name="conModels"></param>
     /// <param name="va"></param>
     /// <param name="tb"></param>
-    private void ConditionBetween(string subtable, List<IConditionalModel> conModels, KeyValuePair<string, JToken> va, ISugarQueryable<ExpandoObject> tb)
+    private static void ConditionBetween(string subtable, List<IConditionalModel> conModels, KeyValuePair<string, JToken> va, ISugarQueryable<ExpandoObject> tb)
     {
         var vakey = va.Key.Trim();
         var field = vakey.TrimEnd("%".ToCharArray());

+ 1 - 1
Admin.NET/Admin.NET.Core/Service/CodeGen/SysCodeGenService.cs

@@ -381,7 +381,7 @@ public class SysCodeGenService : IDynamicApiController, ITransient
     /// </summary>
     /// <param name="configs"></param>
     /// <returns></returns>
-    private (string, string) GetJoinTableStr(List<CodeGenConfig> configs)
+    private static (string, string) GetJoinTableStr(List<CodeGenConfig> configs)
     {
         var uploads = configs.Where(u => u.EffectType == "Upload").ToList();
         var fks = configs.Where(u => u.EffectType == "fk").ToList();

+ 2 - 2
Admin.NET/Admin.NET.Core/Service/Enum/SysEnumService.cs

@@ -44,7 +44,7 @@ public class SysEnumService : IDynamicApiController, ITransient
     /// </summary>
     /// <param name="type"></param>
     /// <returns></returns>
-    private EnumTypeOutput GetEnumDescription(Type type)
+    private static EnumTypeOutput GetEnumDescription(Type type)
     {
         string description = type.Name;
         var attrs = type.GetCustomAttributes(typeof(DescriptionAttribute), false);
@@ -84,7 +84,7 @@ public class SysEnumService : IDynamicApiController, ITransient
     /// <param name="input"></param>
     /// <returns></returns>
     [DisplayName("通过实体的字段名获取相关枚举值集合")]
-    public List<EnumEntity> GetEnumDataListByField([FromQuery] QueryEnumDataInput input)
+    public static List<EnumEntity> GetEnumDataListByField([FromQuery] QueryEnumDataInput input)
     {
         // 获取实体类型属性
         Type entityType = App.EffectiveTypes.FirstOrDefault(u => u.Name == input.EntityName) ?? throw Oops.Oh(ErrorCodeEnum.D1504);