|
|
|
@@ -173,7 +173,7 @@ public class BoLinkUtil { |
|
|
|
public static String couponSend(String baseUrl, String comid, String unionId, String key, |
|
|
|
String carNumber, |
|
|
|
String orderId, |
|
|
|
String unit, String amount) { |
|
|
|
Integer unit, String amount) { |
|
|
|
String couponUrl = "/zld/openservice/paynoticetopark"; |
|
|
|
String url = baseUrl + couponUrl; |
|
|
|
Map<String, Object> params = new LinkedHashMap<String, Object>(); |
|
|
|
@@ -183,11 +183,11 @@ public class BoLinkUtil { |
|
|
|
params.put(BOLINK_ORDER_ID, orderId); |
|
|
|
params.put("type", 1); |
|
|
|
params.put(BOLINK_PAY_TIME, new Date().getTime()); |
|
|
|
if (unit.equals(EnumCouponUnit.MONEY.getCode())) { |
|
|
|
if (unit.intValue() == EnumCouponUnit.MONEY.getCode().intValue()) { |
|
|
|
// 金额 |
|
|
|
params.put(BOLINK_DEDUCTION_MONEY, amount); |
|
|
|
} else { |
|
|
|
// 小时 |
|
|
|
// 分钟 |
|
|
|
params.put(BOLINK_DEDUCTION_TIME, amount); |
|
|
|
} |
|
|
|
try { |
|
|
|
|