chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
2c16a232b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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