统计播放量不要用户id
This commit is contained in:
@@ -98,14 +98,12 @@ public class AppCourseController extends AbstractController {
|
|||||||
return courseService.selectWxVideoUrl(wxCourseDetailsIds);
|
return courseService.selectWxVideoUrl(wxCourseDetailsIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Login
|
|
||||||
@GetMapping("/viewCourse")
|
@GetMapping("/viewCourse")
|
||||||
@ApiOperation("查看短剧")
|
@ApiOperation("查看短剧")
|
||||||
public Result viewCourse(@RequestAttribute Long userId,
|
public Result viewCourse(@ApiParam("短剧id") Long courseId,
|
||||||
@ApiParam("短剧id") Long courseId,
|
|
||||||
@ApiParam("剧集id") Long courseDetailsId,
|
@ApiParam("剧集id") Long courseDetailsId,
|
||||||
@ApiParam("统计类型:start 开始,end 结束") String type) {
|
@ApiParam("统计类型:start 开始,end 结束") String type) {
|
||||||
return courseService.viewCourse(userId, courseId, courseDetailsId, type);
|
return courseService.viewCourse(courseId, courseDetailsId, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public interface CourseService extends IService<Course> {
|
|||||||
|
|
||||||
Result courseListExcelIn(MultipartFile file) throws IOException;
|
Result courseListExcelIn(MultipartFile file) throws IOException;
|
||||||
|
|
||||||
Result viewCourse(Long userId, Long courseId, Long courseDetailsId, String type);
|
Result viewCourse(Long courseId, Long courseDetailsId, String type);
|
||||||
|
|
||||||
Result getRedEnvelopeTips(Long userId);
|
Result getRedEnvelopeTips(Long userId);
|
||||||
|
|
||||||
|
|||||||
@@ -1235,7 +1235,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result viewCourse(Long userId, Long courseId, Long courseDetailsId, String type) {
|
public Result viewCourse(Long courseId, Long courseDetailsId, String type) {
|
||||||
Course course = baseMapper.selectById(courseId);
|
Course course = baseMapper.selectById(courseId);
|
||||||
if(course==null){
|
if(course==null){
|
||||||
return Result.error("短剧不存在");
|
return Result.error("短剧不存在");
|
||||||
|
|||||||
Reference in New Issue
Block a user