Merge branch 'test' into dev

This commit is contained in:
GYJ 2025-01-07 10:31:11 +08:00
commit 4eee0b5b0a
1 changed files with 3 additions and 2 deletions

View File

@ -226,6 +226,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
map.put("dyEpisodeId", "");
map.put("wxCourseDetailsId", "");
map.putAll(countMap);
map.put("courseId", courseId + "");
}
PageUtils pageUtils = PageUtils.page(pageInfo);
// setCache(cacheKey, JSONUtil.toJsonStr(pageUtils));
@ -1299,10 +1300,10 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
if ("start".equals(type)) {
//开始播放
courseDetailsDao.updateViewCount(details.getCourseId(),details.getCourseDetailsId(), 1);
courseDetailsDao.updateViewCount(details.getCourseId(), details.getCourseDetailsId(), 1);
} else if ("end".equals(type)) {
//播放完成
courseDetailsDao.updateViewCount(details.getCourseId(),details.getCourseDetailsId(), 2);
courseDetailsDao.updateViewCount(details.getCourseId(), details.getCourseDetailsId(), 2);
}
return Result.success();