peng
7 天以前 7747b92bc49c1b9bd8d67d016c311b03d0e58494
framework/src/main/java/cn/lili/modules/lmk/service/impl/CouponVirtualServiceImpl.java
@@ -209,7 +209,7 @@
            if (!b) {
                throw new RuntimeException("领取失败");
            }
            return Result.ok("领取成功");
            return Result.ok().data(cardInfo.getCouponId());
        } finally {
            assert lock != null;
            if (lock.isHeldByCurrentThread()) {
@@ -225,4 +225,13 @@
        this.updateById(couponVirtual);
        return Result.ok();
    }
    @Override
    public Result couponCardInfo(String cardId) {
        CouponVirtual couponVirtual = this.getById(cardId);
        if (couponVirtual == null) {
            throw new ServiceException("当前购物卡不存在");
        }
        return Result.ok().data(couponVirtual);
    }
}