完成播放接口修改

This commit is contained in:
caoqianming 2022-12-05 14:36:21 +08:00
parent fc79e0b782
commit aa2c4d8d10
1 changed files with 0 additions and 1 deletions

View File

@ -204,7 +204,6 @@ class ViewItemViewSet(ListModelMixin, UpdateModelMixin, GenericViewSet):
完成播放
"""
obj = self.get_object()
obj.current = 0
v2 = View2.objects.get(video=obj.video, create_by=obj.create_by)
if v2.total_seconds >= obj.video.duration * 0.6:
v2.is_completed = True