Prechádzať zdrojové kódy

退款通知,修改 app_account_token

linhaohong 9 mesiacov pred
rodič
commit
93ce17c469
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      Controller/InAppPurchaseController.py

+ 3 - 1
Controller/InAppPurchaseController.py

@@ -371,12 +371,14 @@ class InAppPurchaseView(View):
                 decoded_payload.data.signedTransactionInfo)
             transaction_id = decoded_transaction_information.transactionId
             app_account_token = decoded_transaction_information.appAccountToken
+            if app_account_token is None:
+                app_account_token = ""
             orders_qs = Order_Model.objects.filter(transaction_id=transaction_id)
             if orders_qs.exists():
                 orderID = orders_qs[0].orderID
                 uid = orders_qs[0].UID
                 now_time = int(time.time())
-                put_time = now_time + 11.5 * 60 * 60
+                put_time = int(now_time + 11.5 * 60 * 60)
                 in_app_refund_qs = InAppRefund.objects.filter(transaction_id=transaction_id)
                 if in_app_refund_qs.exists():
                     in_app_refund_qs.update(refund_progress=0, updated_time=now_time,