|
@@ -152,7 +152,7 @@ class CloudVodView(View):
|
|
success = alipay.verify(data, signature)
|
|
success = alipay.verify(data, signature)
|
|
if success and data["trade_status"] in ("TRADE_SUCCESS", "TRADE_FINISHED"):
|
|
if success and data["trade_status"] in ("TRADE_SUCCESS", "TRADE_FINISHED"):
|
|
print("trade succeed")
|
|
print("trade succeed")
|
|
- order_qs = Order_Model.objects.filter(orderID=orderID,status=0)
|
|
|
|
|
|
+ order_qs = Order_Model.objects.filter(orderID=orderID)
|
|
# if not order_qs.exists():
|
|
# if not order_qs.exists():
|
|
# return response.json(404)
|
|
# return response.json(404)
|
|
nowTime = int(time.time())
|
|
nowTime = int(time.time())
|