mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 18:36:51 +08:00
同步一下
This commit is contained in:
@@ -297,7 +297,6 @@ public class StudyCourseApi extends ApiBaseController{
|
||||
}
|
||||
|
||||
//更新时长
|
||||
|
||||
/**追加学习时长*/
|
||||
@PostMapping("/study-append-duration")
|
||||
public JsonResponse<Boolean> appendStudyDuration(String studyId,String studyItemId,String contentId,Integer duration){
|
||||
@@ -452,7 +451,7 @@ public class StudyCourseApi extends ApiBaseController{
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/study-video-time")
|
||||
public JsonResponse<Boolean> study(String itemId,Integer videoTime){
|
||||
public JsonResponse<Boolean> study(String studyId,String itemId,Integer videoTime){
|
||||
|
||||
if(StringUtils.isBlank(itemId)){
|
||||
return error("参数错误");
|
||||
@@ -500,7 +499,8 @@ public class StudyCourseApi extends ApiBaseController{
|
||||
try {
|
||||
//此处需要优化处理,
|
||||
//不能直接记录追加学习时间。以后增加到队列中,后台服务定时从队列中读取, 更新到系统中
|
||||
studyService.appendStudyDuration(studyTime);
|
||||
//studyService.appendStudyDuration(studyTime);
|
||||
studyService.appendStudyDuration(studyTime.getStudyId(),null,studyTime.getContentId(),studyTime.getDuration());
|
||||
return success(studyTime.getId());
|
||||
}catch(Exception e) {
|
||||
log.error("记录学习时长错误",e);
|
||||
|
||||
Reference in New Issue
Block a user