Просмотр исходного кода

apiParamCount字段需要筛选,只查请求参数

lichunlei 4 месяцев назад
Родитель
Сommit
1cfb7d3219
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Model/Database/ApiInfo.cs

+ 2 - 1
Model/Database/ApiInfo.cs

@@ -1,3 +1,4 @@
+using System.Linq;
 using Mapster;
 using Mapster;
 using Util;
 using Util;
 using static System.Runtime.InteropServices.JavaScript.JSType;
 using static System.Runtime.InteropServices.JavaScript.JSType;
@@ -164,7 +165,7 @@ namespace Model
             {
             {
                 if (apiParam != null)
                 if (apiParam != null)
                 {
                 {
-                    return apiParam.Count;
+                    return apiParam.Count(m => m.reqParam);
                 }
                 }
                 else
                 else
                 {
                 {