|
@@ -247,7 +247,7 @@ public class SavePayResultService {
|
|
|
return payTime;
|
|
|
}
|
|
|
|
|
|
- public String saveCouponPurchase(WxPayOrder order) {
|
|
|
+ public String saveCouponPurchase(WxPayOrder order, String payTime) {
|
|
|
String[] decode = Base64.decodeStr(order.getCouponId()).split("-");
|
|
|
String couponId = decode[0];
|
|
|
CouponAttribute attribute = couponDao.selectSalesmanOperationCouponValue(couponId);
|
|
@@ -269,7 +269,7 @@ public class SavePayResultService {
|
|
|
JSON.toJSONStringWithDateFormat(coupon, "yyyy.MM.dd"), insertResponse);
|
|
|
if (insertResponse == 1) {
|
|
|
couponDao.updateLeftQuantity(order.getCouponId());
|
|
|
- return "SUCCESS";
|
|
|
+ return payTime;
|
|
|
}
|
|
|
return "领取优惠券失败,请联系管理员。";
|
|
|
}
|