|
|
|
@@ -299,10 +299,12 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
coupon = wxCouponMapper.selectByPrimaryKey(couponId); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("券未找到, e:" + e.getMessage()); |
|
|
|
redisLock.unlock(couponIdStr, timeStr); |
|
|
|
throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
} |
|
|
|
if (coupon == null) { |
|
|
|
logger.error("券未找到, " + couponIdStr); |
|
|
|
redisLock.unlock(couponIdStr, timeStr); |
|
|
|
throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
} |
|
|
|
|
|
|
|
|