|
|
|
@ -238,7 +238,7 @@ public class RedServiceImpl implements RedService { |
|
|
|
// 构造参数 |
|
|
|
String body = "{\"order_id\":\"" + linkId + "\",\"amount\":" + price.divideToIntegralValue(BigDecimal.valueOf(100)).intValue() + "}"; |
|
|
|
// 构建 HttpRequest |
|
|
|
HttpRequest request = HttpRequest.newBuilder().uri(URI.create(BASE_URL_Margen+PATH_CHECK)) |
|
|
|
HttpRequest request = HttpRequest.newBuilder().uri(URI.create(BASE_URLProd+PATH_CHECK)) |
|
|
|
.header("Content-Type", "application/json") |
|
|
|
.POST(HttpRequest.BodyPublishers.ofString(body)) |
|
|
|
.build(); |
|
|
|
@ -300,7 +300,7 @@ public class RedServiceImpl implements RedService { |
|
|
|
// 构造参数 |
|
|
|
String body = "{\"order_id\":\"" + linkId + "\"}"; |
|
|
|
// 构建 HttpRequest |
|
|
|
HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(BASE_URL_Margen+PATH_REFUND)) |
|
|
|
HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(BASE_URLProd+PATH_REFUND)) |
|
|
|
.header("Content-Type", "application/json") |
|
|
|
.POST(HttpRequest.BodyPublishers.ofString(body)) |
|
|
|
.build(); |
|
|
|
|