|
@@ -1051,7 +1051,7 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
|
|
|
RLock lock = redissonClient.getLock("teacherId:" + scheduleDto.getTeacherId());
|
|
|
try {
|
|
|
- if (lock.tryLock(0, 60, TimeUnit.SECONDS)) {
|
|
|
+ if (lock.tryLock(5, 60, TimeUnit.SECONDS)) {
|
|
|
return buyPracticeCourseTran(orderReqInfo);
|
|
|
}
|
|
|
} catch (InterruptedException e) {
|