|
|
|
@@ -163,12 +163,13 @@ public class WxCouponOrderCVo extends WxCouponOrder { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static final int expiredSeconds = 30; |
|
|
|
public static final int expiredSeconds = 90; |
|
|
|
public static final String arg = "&"; |
|
|
|
public static String calcuteExpiredCouponOrderId(String couponOrderId) { |
|
|
|
if (StringUtils.isBlank(couponOrderId)) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
StringBuffer sb = new StringBuffer().append(couponOrderId).append("&").append(DateUtils.date2String(DateUtils.getSecondsTimeAfter(expiredSeconds, new Date()))); |
|
|
|
StringBuffer sb = new StringBuffer().append(couponOrderId).append(arg).append(DateUtils.date2String(DateUtils.getSecondsTimeAfter(expiredSeconds, new Date()))); |
|
|
|
return Base64Util.encode(sb.toString().getBytes()); |
|
|
|
} |
|
|
|
|
|
|
|
|