chenjunkai 6 rokov pred
rodič
commit
d62c20b9e8
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      Controller/CloudVod.py

+ 3 - 1
Controller/CloudVod.py

@@ -146,10 +146,12 @@ class CloudVodView(View):
             print("trade succeed")
             nowTime = int(time.time())
             order_list = order_qs.values("UID", "rank__id", "channel")
-            order_qs.update(status=1, updTime=nowTime)
             rank_id = order_list[0]['rank__id']
+            print(rank_id)
             UID = order_list[0]['UID']
             channel = order_list[0]['channel']
+            order_qs.update(status=1, updTime=nowTime)
+
             smqs = Store_Meal.objects.filter(id=rank_id).values("day", "bucket_id", "bucket__storeDay")
             bucketId = smqs[0]['bucket_id']
             if not smqs.exists():