mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-10-26 14:42:59 +08:00
优化学员学习记录的错误提示
This commit is contained in:
@@ -129,7 +129,7 @@ public class HourController {
|
||||
String lockKey = String.format("record:%d", FCtx.getId());
|
||||
boolean tryLock = redisDistributedLock.tryLock(lockKey, 5, TimeUnit.SECONDS);
|
||||
if (!tryLock) {
|
||||
return JsonResponse.error("请稍后再试");
|
||||
return JsonResponse.success();
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -166,7 +166,7 @@ public class HourController {
|
||||
String lockKey = String.format("ping:%d", FCtx.getId());
|
||||
boolean tryLock = redisDistributedLock.tryLock(lockKey, 5, TimeUnit.SECONDS);
|
||||
if (!tryLock) {
|
||||
return JsonResponse.error("请稍后再试");
|
||||
return JsonResponse.success();
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user