Skip to content

Commit

Permalink
示例设置返回内容编码格式
Browse files Browse the repository at this point in the history
  • Loading branch information
Roc committed Aug 9, 2018
1 parent 1f3bcc3 commit a1810e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public async Task<IActionResult> 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]
Expand All @@ -154,7 +154,7 @@ public async Task<IActionResult> 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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task<IActionResult> 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]
Expand All @@ -72,7 +72,7 @@ public async Task<IActionResult> 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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public async Task<IActionResult> 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]
Expand Down Expand Up @@ -81,7 +81,7 @@ public async Task<IActionResult> 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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task<IActionResult> 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]
Expand Down

0 comments on commit a1810e4

Please sign in to comment.