Sfoglia il codice sorgente

[库存][修改]:库存退回问题

release_toaliyun_real
Stormeye Wu 7 anni fa
parent
commit
672b01623d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java

+ 2
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java Vedi File

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




Caricamento…
Annulla
Salva