mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-10-26 22:51:36 +08:00
权限优化 && 学员的线上课学习记录重置的进度更新
This commit is contained in:
@@ -42,7 +42,7 @@ public class ExceptionController {
|
||||
|
||||
@ExceptionHandler(Exception.class)
|
||||
public JsonResponse exceptionHandler(Exception e) {
|
||||
log.error("{}-{}", e, e.getMessage());
|
||||
log.error("出现异常", e);
|
||||
return JsonResponse.error("系统错误", 500);
|
||||
}
|
||||
|
||||
@@ -101,6 +101,6 @@ public class ExceptionController {
|
||||
@ExceptionHandler(AmazonS3Exception.class)
|
||||
public JsonResponse serviceExceptionHandler(AmazonS3Exception e) {
|
||||
log.error("s3错误={}", e.getMessage());
|
||||
return JsonResponse.error(e.getMessage(), 500);
|
||||
return JsonResponse.error("存储配置有问题或存储无法无法正常访问", 500);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,6 @@ public class UserCourseHourRecordDestroyListener {
|
||||
|
||||
@EventListener
|
||||
public void updateUserCourseRecord(UserCourseHourRecordDestroyEvent e) {
|
||||
userCourseRecordService.decrease(e.getUserId(), e.getCourseId(), 1);
|
||||
userCourseRecordService.updateUserCourseLearnProgress(e.getUserId(), e.getCourseId(), 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user