|
@@ -979,6 +979,7 @@ class CloudStorageView(View):
|
|
trade_status = data['result_code'] # 业务结果 SUCCESS/FAIL
|
|
trade_status = data['result_code'] # 业务结果 SUCCESS/FAIL
|
|
out_trade_no = data['out_trade_no'] # 商户订单号
|
|
out_trade_no = data['out_trade_no'] # 商户订单号
|
|
order_qs = None
|
|
order_qs = None
|
|
|
|
+ self.callback_dostatus(out_trade_no)
|
|
if trade_status == "SUCCESS":
|
|
if trade_status == "SUCCESS":
|
|
logger.info('微信回调返回值 进来了。')
|
|
logger.info('微信回调返回值 进来了。')
|
|
check_sign = pay.get_notifypay(data)
|
|
check_sign = pay.get_notifypay(data)
|
|
@@ -987,7 +988,7 @@ class CloudStorageView(View):
|
|
logger.info('签名成功')
|
|
logger.info('签名成功')
|
|
orderID = out_trade_no
|
|
orderID = out_trade_no
|
|
print("进来了,微信支付成功回调")
|
|
print("进来了,微信支付成功回调")
|
|
- self.callback_dostatus(orderID)
|
|
|
|
|
|
+
|
|
|
|
|
|
order_qs = Order_Model.objects.filter(orderID=orderID)
|
|
order_qs = Order_Model.objects.filter(orderID=orderID)
|
|
nowTime = int(time.time())
|
|
nowTime = int(time.time())
|
|
@@ -1374,6 +1375,8 @@ class CloudStorageView(View):
|
|
oq = Order_Model.objects.filter(orderID=orderid)
|
|
oq = Order_Model.objects.filter(orderID=orderid)
|
|
if oq.exists():
|
|
if oq.exists():
|
|
oq.update(status=9)
|
|
oq.update(status=9)
|
|
|
|
+ else:
|
|
|
|
+ raise Exception("找不到订单")
|
|
|
|
|
|
#删除过期云存播放列表
|
|
#删除过期云存播放列表
|
|
def deleteVodHls(request):
|
|
def deleteVodHls(request):
|