|
|
|
@ -143,9 +143,9 @@ public class RedServiceImpl implements RedService { |
|
|
|
} |
|
|
|
} |
|
|
|
@Override |
|
|
|
public String sendConsumeJwcode(Integer jwcode, BigDecimal price,String orderId) { |
|
|
|
public String sendConsumeJwcode(Integer jwcode, List<String> redIds,String orderId) { |
|
|
|
try { |
|
|
|
String body = JSON.toJSONString(java.util.Map.of("jwcode", jwcode,"discount",price,"order_id",orderId)); |
|
|
|
String body = JSON.toJSONString(java.util.Map.of("jwcode", jwcode,"coupon_ids",redIds,"order_id",orderId)); |
|
|
|
HttpRequest request = HttpRequest.newBuilder() |
|
|
|
.uri(URI.create(BASE_URLProd + CONSUME_PATH)) //URL记得换 |
|
|
|
.header("Content-Type", "application/json") |
|
|
|
|