Browse Source

云存上传秒数处理

peng 2 years ago
parent
commit
459ae68891
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Controller/CloudStorage.py
  2. 1 0
      Controller/CloudVod.py

+ 1 - 0
Controller/CloudStorage.py

@@ -564,6 +564,7 @@ class CloudStorageView(View):
         if not uidToken or not storeTime or not sec:
             return response.json(0)
         pass
+        sec = int(sec)
         UID = utko.UID
         channel = utko.channel
         print('UID:')

+ 1 - 0
Controller/CloudVod.py

@@ -620,6 +620,7 @@ class CloudVodView(View):
             return response.json(444, 'uidToken')
         if not uidToken or not storeTime or not sec:
             return response.json(444, 'uidToken,time,sec')
+        sec = int(sec)
         UID = utko.UID
         channel = utko.channel
         print(channel)