opt:分配添加锁释放时间

This commit is contained in:
zhangzq
2025-02-20 18:37:43 +08:00
parent e838f4c267
commit 8c30fb32ec

View File

@@ -2437,7 +2437,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
} }
RLock lock = redissonClient.getLock("all_cancelDivOne"); RLock lock = redissonClient.getLock("all_cancelDivOne");
boolean tryLock = lock.tryLock(0, TimeUnit.SECONDS); boolean tryLock = lock.tryLock(0, 60,TimeUnit.SECONDS);
try { try {
if (tryLock) { if (tryLock) {