瀏覽代碼

修复云存分表问题

peng 2 年之前
父節點
當前提交
b3b387a483
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/CloudVod.py

+ 1 - 1
Controller/CloudVod.py

@@ -495,7 +495,7 @@ class CloudVodView(View):
             return response.json(10, '设备未购买')
             return response.json(10, '设备未购买')
         nowTime = int(time.time())
         nowTime = int(time.time())
         split_vod_hls_obj = SplitVodHlsObject()
         split_vod_hls_obj = SplitVodHlsObject()
-        vodqs = split_vod_hls_obj.render(uid=uid, channel=channel, start_time=(startTime, endTime),
+        vodqs = split_vod_hls_obj.get_vod_hls_data(uid=uid, channel=channel, start_time__range=(startTime, endTime),
                                                    end_time__gte=nowTime).values("start_time", "sec", "bucket_id")
                                                    end_time__gte=nowTime).values("start_time", "sec", "bucket_id")
         if not vodqs.exists():
         if not vodqs.exists():
             return response.json(173)
             return response.json(173)