Browse Source

微信支付 订单2

chenshibin 4 năm trước cách đây
mục cha
commit
4e056a42d9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Controller/CloudStorage.py

+ 2 - 2
Controller/CloudStorage.py

@@ -906,8 +906,8 @@ class CloudStorageView(View):
             if not orderID:
             if not orderID:
                 red_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
                 red_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
                 return HttpResponseRedirect(red_url)
                 return HttpResponseRedirect(red_url)
-            # else:
-            #     order_qs.update(status=9)
+            else:
+                order_qs.update(status=9)
             paypalrestsdk.configure(PAYPAL_CRD)
             paypalrestsdk.configure(PAYPAL_CRD)
             # ID of the payment. This ID is provided when creating payment.
             # ID of the payment. This ID is provided when creating payment.
             payment = paypalrestsdk.Payment.find(paymentId)
             payment = paypalrestsdk.Payment.find(paymentId)