统计播放量不要用户id
This commit is contained in:
parent
842cacd88e
commit
a241322cb4
|
|
@ -98,14 +98,12 @@ public class AppCourseController extends AbstractController {
|
|||
return courseService.selectWxVideoUrl(wxCourseDetailsIds);
|
||||
}
|
||||
|
||||
@Login
|
||||
@GetMapping("/viewCourse")
|
||||
@ApiOperation("查看短剧")
|
||||
public Result viewCourse(@RequestAttribute Long userId,
|
||||
@ApiParam("短剧id") Long courseId,
|
||||
public Result viewCourse(@ApiParam("短剧id") Long courseId,
|
||||
@ApiParam("剧集id") Long courseDetailsId,
|
||||
@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 viewCourse(Long userId, Long courseId, Long courseDetailsId, String type);
|
||||
Result viewCourse(Long courseId, Long courseDetailsId, String type);
|
||||
|
||||
Result getRedEnvelopeTips(Long userId);
|
||||
|
||||
|
|
|
|||
|
|
@ -1235,7 +1235,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, Course> implements
|
|||
}
|
||||
|
||||
@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);
|
||||
if(course==null){
|
||||
return Result.error("短剧不存在");
|
||||
|
|
|
|||
Loading…
Reference in New Issue