chenjunkai 6 năm trước cách đây
mục cha
commit
2c16a232b1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/CloudVod.py

+ 1 - 1
Controller/CloudVod.py

@@ -437,7 +437,7 @@ class CloudVodView(View):
                                                                                    "bucket_id")
         if not qs.exists():
             return response.json(10, '设备未购买')
-        nowTime = int(time)
+        nowTime = int(time.time())
         storeDay = qs[0]['bucket__storeDay']
         bucketID = qs[0]['bucket_id']
         endTime = nowTime + storeDay * 86400