Roc vor 7 Jahren
Ursprung
Commit
ef8377f84b

+ 4 - 14
src/Essensoft.AspNetCore.Payment.Alipay/AlipayClient.cs

@@ -82,9 +82,9 @@ namespace Essensoft.AspNetCore.Payment.Alipay
             return await PageExecuteAsync(request, null, "POST");
         }
 
-        public async Task<T> PageExecuteAsync<T>(string optionsName, IAlipayRequest<T> request) where T : AlipayResponse
+        public async Task<T> PageExecuteAsync<T>(IAlipayRequest<T> request, string optionsName) where T : AlipayResponse
         {
-            return await PageExecuteAsync(optionsName, request, null, "POST");
+            return await PageExecuteAsync(request, null, "POST");
         }
 
         #endregion
@@ -93,10 +93,10 @@ namespace Essensoft.AspNetCore.Payment.Alipay
 
         public async Task<T> PageExecuteAsync<T>(IAlipayRequest<T> request, string accessToken, string reqMethod) where T : AlipayResponse
         {
-            return await PageExecuteAsync(null, request, accessToken, reqMethod);
+            return await PageExecuteAsync(request, null, accessToken, reqMethod);
         }
 
-        public async Task<T> PageExecuteAsync<T>(string optionsName, IAlipayRequest<T> request, string accessToken, string reqMethod) where T : AlipayResponse
+        public async Task<T> PageExecuteAsync<T>(IAlipayRequest<T> request, string optionsName, string accessToken, string reqMethod) where T : AlipayResponse
         {
             var options = string.IsNullOrEmpty(optionsName) ? OptionsSnapshotAccessor.Value : OptionsSnapshotAccessor.Get(optionsName);
             var apiVersion = string.IsNullOrEmpty(request.GetApiVersion()) ? options.Version : request.GetApiVersion();
@@ -456,16 +456,6 @@ namespace Essensoft.AspNetCore.Payment.Alipay
             return bizModel == null ? string.Empty : JsonConvert.SerializeObject(bizModel, jsonSerializerSettings);
         }
 
-        public Task<T> PageExecuteAsync<T>(IAlipayRequest<T> request, string optionsName) where T : AlipayResponse
-        {
-            throw new NotImplementedException();
-        }
-
-        public Task<T> PageExecuteAsync<T>(IAlipayRequest<T> request, string optionsName, string session, string reqMethod) where T : AlipayResponse
-        {
-            throw new NotImplementedException();
-        }
-
         #endregion
     }
 }

+ 4 - 4
src/Essensoft.AspNetCore.Payment.Alipay/IAlipayClient.cs

@@ -25,7 +25,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay
         Task<T> ExecuteAsync<T>(IAlipayRequest<T> request, string optionsName) where T : AlipayResponse;
 
         /// <summary>
-        /// 执行Alipay隐私API请求。
+        /// 执行Alipay公开API请求。
         /// </summary>
         /// <typeparam name="T">领域对象</typeparam>
         /// <param name="request">具体的Alipay API请求</param>
@@ -35,7 +35,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay
         Task<T> ExecuteAsync<T>(IAlipayRequest<T> request, string session, string appAuthToken) where T : AlipayResponse;
 
         /// <summary>
-        /// 执行Alipay隐私API请求。
+        /// 执行Alipay公开API请求。
         /// </summary>
         /// <typeparam name="T">领域对象</typeparam>
         /// <param name="request">具体的Alipay API请求</param>
@@ -63,7 +63,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay
         Task<T> PageExecuteAsync<T>(IAlipayRequest<T> request, string optionsName) where T : AlipayResponse;
 
         /// <summary>
-        /// 执行Alipay隐私API请求。
+        /// 执行Alipay公开API请求。
         /// </summary>
         /// <typeparam name="T">领域对象</typeparam>
         /// <param name="request">具体的Alipay API请求</param>
@@ -72,7 +72,7 @@ namespace Essensoft.AspNetCore.Payment.Alipay
         Task<T> PageExecuteAsync<T>(IAlipayRequest<T> request, string session, string reqMethod) where T : AlipayResponse;
 
         /// <summary>
-        /// 执行Alipay隐私API请求。
+        /// 执行Alipay公开API请求。
         /// </summary>
         /// <typeparam name="T">领域对象</typeparam>
         /// <param name="request">具体的Alipay API请求</param>