Roc 6 years ago
parent
commit
29b6718f23

+ 2 - 2
samples/WebApplicationSample/Controllers/AlipayController.cs

@@ -401,7 +401,7 @@ namespace WebApplicationSample.Controllers
         {
             try
             {
-                var notify = await _notifyClient.ExecuteAsync<AlipayTradePagePayReturnResponse>(Request);
+                var notify = await _notifyClient.ExecuteAsync<AlipayTradePagePayReturn>(Request);
                 ViewData["response"] = "支付成功";
                 return View();
             }
@@ -421,7 +421,7 @@ namespace WebApplicationSample.Controllers
         {
             try
             {
-                var notify = await _notifyClient.ExecuteAsync<AlipayTradeWapPayReturnResponse>(Request);
+                var notify = await _notifyClient.ExecuteAsync<AlipayTradeWapPayReturn>(Request);
                 ViewData["response"] = "支付成功";
                 return View();
             }

+ 4 - 4
samples/WebApplicationSample/Controllers/NotifyController.cs

@@ -39,7 +39,7 @@ namespace WebApplicationSample.Controllers
         {
             try
             {
-                var notify = await _client.ExecuteAsync<AlipayTradePrecreateNotifyResponse>(Request);
+                var notify = await _client.ExecuteAsync<AlipayTradePrecreateNotify>(Request);
                 if ("TRADE_SUCCESS" == notify.TradeStatus)
                 {
                     Console.WriteLine("OutTradeNo: " + notify.OutTradeNo);
@@ -64,7 +64,7 @@ namespace WebApplicationSample.Controllers
         {
             try
             {
-                var notify = await _client.ExecuteAsync<AlipayTradeAppPayNotifyResponse>(Request);
+                var notify = await _client.ExecuteAsync<AlipayTradeAppPayNotify>(Request);
                 if ("TRADE_SUCCESS" == notify.TradeStatus)
                 {
                     Console.WriteLine("OutTradeNo: " + notify.OutTradeNo);
@@ -89,7 +89,7 @@ namespace WebApplicationSample.Controllers
         {
             try
             {
-                var notify = await _client.ExecuteAsync<AlipayTradePagePayNotifyResponse>(Request);
+                var notify = await _client.ExecuteAsync<AlipayTradePagePayNotify>(Request);
                 if ("TRADE_SUCCESS" == notify.TradeStatus)
                 {
                     Console.WriteLine("OutTradeNo: " + notify.OutTradeNo);
@@ -114,7 +114,7 @@ namespace WebApplicationSample.Controllers
         {
             try
             {
-                var notify = await _client.ExecuteAsync<AlipayTradeWapPayNotifyResponse>(Request);
+                var notify = await _client.ExecuteAsync<AlipayTradeWapPayNotify>(Request);
                 if ("TRADE_SUCCESS" == notify.TradeStatus)
                 {
                     Console.WriteLine("OutTradeNo: " + notify.OutTradeNo);