|
@@ -33,7 +33,7 @@ public class PayController {
|
|
|
|
|
|
@Operation(summary = "回调成功")
|
|
|
@PostMapping("/success")
|
|
|
- private String success(@RequestBody WeiXinSuccessDTO weiXinSuccessDTO) throws IOException {
|
|
|
+ public String success(@RequestBody WeiXinSuccessDTO weiXinSuccessDTO) throws IOException {
|
|
|
try {
|
|
|
WeiXinSuccessDTO.Resource resource = weiXinSuccessDTO.getResource();
|
|
|
WeixinSuccessVO weixinSuccessVO = authorizationService.decryptMessage(resource.getAssociated_data(), resource.getNonce(), resource.getCiphertext());
|
|
@@ -51,7 +51,7 @@ public class PayController {
|
|
|
|
|
|
@Operation(summary = "下单并获取订单信息")
|
|
|
@PostMapping("/getPayTickets")
|
|
|
- private Response getPayTickets(@RequestBody WeiXinPayDTO weiXinPayDTO) {
|
|
|
+ public Response getPayTickets(@RequestBody WeiXinPayDTO weiXinPayDTO) {
|
|
|
Records records = new Records();
|
|
|
try {
|
|
|
GetPayTicketVO getPayTicketVO = weixinPayService.getPayTickets(weiXinPayDTO);
|
|
@@ -65,7 +65,7 @@ public class PayController {
|
|
|
|
|
|
@Operation(summary = "回调成功")
|
|
|
@PostMapping("/testAuthorization")
|
|
|
- private String testAuthorization() {
|
|
|
+ public String testAuthorization() {
|
|
|
try {
|
|
|
String associatedData = "transaction";
|
|
|
String nonce = "yxul9eBG7PQp";
|