优化学员学习记录的错误提示

This commit is contained in:
xxx 2023-11-15 14:00:34 +08:00
parent 5e4c35f9bf
commit 893ab33811

View File

@ -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 {