跳转验签
This commit is contained in:
1 parent
bd1231c2dd
commit
9daba4a98e
5 files changed
+192
-3
No files matched your search
@@ -29,6 +29,8 @@ public class PaymentApiController {
|
||||
private ApiSecurityService apiSecurityService;
|
||||
@Autowired
|
||||
private PaymentOrderOpenApiService paymentOrderOpenApiService;
|
||||
@Autowired
|
||||
private PaymentRedirectService paymentRedirectService;
|
||||
|
||||
@Log(title = "开放 API 创建支付订单", businessType = BusinessType.INSERT,
|
||||
isSaveRequestData = false, isSaveResponseData = false)
|
||||
@@ -51,6 +53,10 @@ public class PaymentApiController {
|
||||
result.put("trade_id", order.getTradeId());
|
||||
result.put("status", order.getStatus());
|
||||
result.put("transaction_id", order.getBlockTransactionId());
|
||||
if (Long.valueOf(2L).equals(order.getStatus())) {
|
||||
result.put("signed_redirect_url",
|
||||
paymentRedirectService.buildSignedRedirectUrl(order, request.getApiKey()));
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user