记得上下班打卡 | git大法好,push需谨慎

Commit 3ec487cd authored by 胡佳晨's avatar 胡佳晨

库存加锁 回调修改

parent 2184a5c9
......@@ -240,7 +240,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
surplusGeneral = dataUtils.changeSurplusGeneral(payOrderParam.getTicketId(), -payOrderParam.getNumber());
currentTime = System.currentTimeMillis() - currentTime;
log.debug("redis 获取库存 -> time:" + (currentTime) + "毫秒");
redisLockUtil.unlock("locak:"+ticketData.getTicketsId());
// redisLockUtil.unlock("locak:"+ticketData.getTicketsId());
// }else{
// redisLockUtil.unlock("locak:"+ticketData.getTicketsId());
// return ResponseDto.failure("下单超时");//乱七八糟异常
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment