Browse Source

app接口请求调试通过,待下一步测试数据

lcl 8 months ago
parent
commit
ffbd8cbcf7
2 changed files with 4 additions and 0 deletions
  1. 3 0
      Extensions/AppServiceExtensions.cs
  2. 1 0
      Filters/AuthorizationFilter.cs

+ 3 - 0
Extensions/AppServiceExtensions.cs

@@ -47,6 +47,9 @@ namespace Infrastructure
             services.AddTransient<IAppBottomNavsService, AppBottomNavsService>();
             services.AddTransient<IPageUpdateInfoService, PageUpdateInfoService>();
             services.AddTransient<IFileUpdateInfoService, FileUpdateInfoService>();
+            services.AddTransient<Services.Client.IAppBottomNavsService, Services.Client.AppBottomNavsService>();
+            services.AddTransient<Services.Client.IPageUpdateInfoService, Services.Client.PageUpdateInfoService>();
+            services.AddTransient<Services.Client.IFileUpdateInfoService, Services.Client.FileUpdateInfoService>();
             services.AddTransient<ISysDictService, SysDictService>();
             services.AddTransient<ISysDictItemService, SysDictItemService>();
         }

+ 1 - 0
Filters/AuthorizationFilter.cs

@@ -38,6 +38,7 @@ namespace Filters
                     content = content.Substring(content.IndexOf("=") + 1);
                     content = HttpUtility.UrlDecode(content);
                     content = Decrypt(content);
+                    content = HttpUtility.UrlDecode(content);
                     if(!string.IsNullOrEmpty(content))
                     {
                         Dictionary<string, object> dic = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<string, object>>(content);