From a1810e4d195b37c178a184638be6f218e55f6fb3 Mon Sep 17 00:00:00 2001 From: Roc Date: Fri, 10 Aug 2018 01:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E8=AE=BE=E7=BD=AE=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=86=85=E5=AE=B9=E7=BC=96=E7=A0=81=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NewWebApplicationSample/Controllers/AlipayController.cs | 4 ++-- .../NewWebApplicationSample/Controllers/JDPayController.cs | 4 ++-- .../Controllers/LianLianPayController.cs | 4 ++-- .../NewWebApplicationSample/Controllers/UnionPayController.cs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/NewWebApplicationSample/Controllers/AlipayController.cs b/samples/NewWebApplicationSample/Controllers/AlipayController.cs index 070cfb5e8..203e956ba 100644 --- a/samples/NewWebApplicationSample/Controllers/AlipayController.cs +++ b/samples/NewWebApplicationSample/Controllers/AlipayController.cs @@ -128,7 +128,7 @@ public async Task PagePay(AlipayTradePagePayViewModel viewModel) req.SetReturnUrl(viewModel.ReturnUrl); var response = await _client.PageExecuteAsync(req); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] @@ -154,7 +154,7 @@ public async Task WapPay(AlipayTradeWapPayViewModel viewMode) req.SetReturnUrl(viewMode.ReturnUrl); var response = await _client.PageExecuteAsync(req); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] diff --git a/samples/NewWebApplicationSample/Controllers/JDPayController.cs b/samples/NewWebApplicationSample/Controllers/JDPayController.cs index 05beae70a..b01e72b5a 100644 --- a/samples/NewWebApplicationSample/Controllers/JDPayController.cs +++ b/samples/NewWebApplicationSample/Controllers/JDPayController.cs @@ -46,7 +46,7 @@ public async Task SaveOrderPC(JDPaySaveOrderViewModel viewModel) }; var response = await _client.PageExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] @@ -72,7 +72,7 @@ public async Task SaveOrderH5(JDPaySaveOrderViewModel viewModel) }; var response = await _client.PageExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] diff --git a/samples/NewWebApplicationSample/Controllers/LianLianPayController.cs b/samples/NewWebApplicationSample/Controllers/LianLianPayController.cs index 71b85bc84..06a1f367a 100644 --- a/samples/NewWebApplicationSample/Controllers/LianLianPayController.cs +++ b/samples/NewWebApplicationSample/Controllers/LianLianPayController.cs @@ -51,7 +51,7 @@ public async Task WebQuickPay(LianLianPayWebQuickPayViewModel vie CardNo = viewModel.CardNo, }; var response = await _client.PageExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] @@ -81,7 +81,7 @@ public async Task WapQuickPay(LianLianPayWapQuickPayViewModel vie CardNo = viewModel.CardNo, }; var response = await _client.PageReqDataExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpGet] diff --git a/samples/NewWebApplicationSample/Controllers/UnionPayController.cs b/samples/NewWebApplicationSample/Controllers/UnionPayController.cs index 12883c4e7..90880bf8e 100644 --- a/samples/NewWebApplicationSample/Controllers/UnionPayController.cs +++ b/samples/NewWebApplicationSample/Controllers/UnionPayController.cs @@ -47,7 +47,7 @@ public async Task FrontConsume62(UnionPayForm_6_2_FrontConsumeVie BackUrl = viewModel.BackUrl, }; var response = await _client.PageExecuteAsync(request); - return Content(response.Body, "text/html"); + return Content(response.Body, "text/html;charset=utf-8"); } [HttpPost]