Explorar o código

修改代码 - 修复同一手机 不同用户登录的内购问题

linhaohong hai 1 ano
pai
achega
302bb9928a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/InAppPurchaseController.py

+ 1 - 1
Controller/InAppPurchaseController.py

@@ -104,7 +104,7 @@ class InAppPurchaseView(View):
             transaction_info = client.get_transaction_info(transaction_id)
 
             signed_transaction_info = transaction_info.signedTransactionInfo
-            if Order_Model.objects.filter(payType=5, transaction_id=original_transaction_identifier).exists():
+            if Order_Model.objects.filter(payType=5, transaction_id=transaction_id).exists():
                 logger.info(f"该transaction_id已订阅过:{transaction_id}")
                 return response.json(10048)