From e91b8bd539809f1d552c9e8c6d34daa243096903 Mon Sep 17 00:00:00 2001 From: maliming Date: Thu, 10 Feb 2022 18:19:08 +0800 Subject: [PATCH 1/2] Update CurrentApiVersionInfo.cs --- .../Abp/Http/Client/ClientProxying/CurrentApiVersionInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/ClientProxying/CurrentApiVersionInfo.cs b/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/ClientProxying/CurrentApiVersionInfo.cs index bd3ea89abf..f56e9e893a 100644 --- a/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/ClientProxying/CurrentApiVersionInfo.cs +++ b/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/ClientProxying/CurrentApiVersionInfo.cs @@ -4,7 +4,7 @@ using Volo.Abp.DependencyInjection; namespace Volo.Abp.Http.Client.ClientProxying; -public class CurrentApiVersionInfo : ICurrentApiVersionInfo, ITransientDependency +public class CurrentApiVersionInfo : ICurrentApiVersionInfo, ISingletonDependency { public ApiVersionInfo ApiVersionInfo => _currentApiVersionInfo.Value; From d3e918bc3f1a67bd3d21fec6936f227da1af478d Mon Sep 17 00:00:00 2001 From: maliming Date: Thu, 10 Feb 2022 19:02:13 +0800 Subject: [PATCH 2/2] Update JQueryProxyScriptGenerator.cs --- .../Generators/JQuery/JQueryProxyScriptGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Http/Volo/Abp/Http/ProxyScripting/Generators/JQuery/JQueryProxyScriptGenerator.cs b/framework/src/Volo.Abp.Http/Volo/Abp/Http/ProxyScripting/Generators/JQuery/JQueryProxyScriptGenerator.cs index 9917713d34..d51ff5fe65 100644 --- a/framework/src/Volo.Abp.Http/Volo/Abp/Http/ProxyScripting/Generators/JQuery/JQueryProxyScriptGenerator.cs +++ b/framework/src/Volo.Abp.Http/Volo/Abp/Http/ProxyScripting/Generators/JQuery/JQueryProxyScriptGenerator.cs @@ -114,7 +114,7 @@ public class JQueryProxyScriptGenerator : IProxyScriptGenerator, ITransientDepen if (versionParam != null) { var version = FindBestApiVersion(action); - script.AppendLine($" var {ProxyScriptingJsFuncHelper.NormalizeJsVariableName(versionParam.Name)} = '{version}';"); + script.AppendLine($" var {ProxyScriptingJsFuncHelper.NormalizeJsVariableName(versionParam.Name)} = api_version ? api_version : '{version}';"); } script.AppendLine(" return abp.ajax($.extend(true, {");