|
|
|
@@ -19,6 +19,7 @@ import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.security.MessageDigest; |
|
|
|
import java.security.NoSuchAlgorithmException; |
|
|
|
import java.text.ParseException; |
|
|
|
@@ -85,6 +86,9 @@ public class BoLinkUtil { |
|
|
|
Date inTime = new Date(_createTime); |
|
|
|
System.out.println(inTime); |
|
|
|
|
|
|
|
Integer unit = 1; |
|
|
|
System.out.println(unit.intValue() == EnumCouponUnit.MONEY.getCode().intValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static Date addTimeByStr(Date time, String str) { |
|
|
|
@@ -188,7 +192,7 @@ public class BoLinkUtil { |
|
|
|
params.put(BOLINK_DEDUCTION_MONEY, amount); |
|
|
|
} else { |
|
|
|
// 分钟 |
|
|
|
params.put(BOLINK_DEDUCTION_TIME, amount); |
|
|
|
params.put(BOLINK_DEDUCTION_TIME, new BigDecimal(amount).multiply(new BigDecimal(60)).toPlainString()); |
|
|
|
} |
|
|
|
try { |
|
|
|
String result = Proc(url, key, params); |
|
|
|
|