解析所有发起购买的客户端ip地址
This commit is contained in:
@@ -27,8 +27,8 @@ public class PayPalCheckoutController {
|
||||
|
||||
@ApiOperation(value = "创建订单")
|
||||
@PostMapping(value = "/trade/{amount}")
|
||||
public Response<HashMap<String, String>> createOrder(@PathVariable Integer amount, @RequestParam String returnUrl) throws SerializeException {
|
||||
HashMap<String, String> approvalUrl = payPalCheckoutService.createOrder(amount,returnUrl);
|
||||
public Response<HashMap<String, String>> createOrder(@PathVariable Integer amount, @RequestParam String returnUrl, HttpServletRequest request) throws SerializeException {
|
||||
HashMap<String, String> approvalUrl = payPalCheckoutService.createOrder(amount, returnUrl, request);
|
||||
return Response.success(approvalUrl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user