Explorar el Código

update test sts

lang hace 4 años
padre
commit
82566ec781
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      Controller/CloudStorage.py

+ 6 - 1
Controller/CloudStorage.py

@@ -442,11 +442,16 @@ class CloudStorageView(View):
                 values("addTime", "data")
             if sts_qs.exists():
                 endTime = int(sts_qs[0]["addTime"]) + 800
-                if reset == '0' and endTime > now_time:
+                if reset == '0':
                     print(endTime)
                     print(now_time)
                     res = json.loads(sts_qs[0]["data"])
                     return JsonResponse(status=200, data=res)
+                # if reset == '0' and endTime > now_time:
+                #     print(endTime)
+                #     print(now_time)
+                #     res = json.loads(sts_qs[0]["data"])
+                #     return JsonResponse(status=200, data=res)
                 # 套餐id
             storage = '{uid}/test/'.format(uid=uid)
             bucket_name = ubqs[0]['bucket__bucket']