瀏覽代碼

update field

lang 4 年之前
父節點
當前提交
1961ff4c20
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/CloudStorage.py

+ 1 - 1
Controller/CloudStorage.py

@@ -1270,7 +1270,7 @@ class CloudStorageView(View):
         switch_commodity_id = request_dict.get('switch_commodity_id',None)
         if switch_commodity_id:
             #切换设备套餐关联
-            using_uid_bucket = UID_Bucket.objects.filter(uid=uid, is_use='1').values("id", "uid", "endTime",
+            using_uid_bucket = UID_Bucket.objects.filter(uid=uid, endTime__gte=int(time.time())).values("id", "uid", "endTime",
                                                                                "bucket__content").order_by('endTime')
 
             if not using_uid_bucket.exists():