Răsfoiți Sursa

修复云存分表问题

peng 2 ani în urmă
părinte
comite
b3b387a483
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Controller/CloudVod.py

+ 1 - 1
Controller/CloudVod.py

@@ -495,7 +495,7 @@ class CloudVodView(View):
             return response.json(10, '设备未购买')
         nowTime = int(time.time())
         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")
         if not vodqs.exists():
             return response.json(173)