Ver código fonte

打印苹果内购收据认证响应

locky 1 ano atrás
pai
commit
c0359d0899
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      Controller/InAppPurchaseController.py

+ 1 - 2
Controller/InAppPurchaseController.py

@@ -76,10 +76,9 @@ class InAppPurchaseView(View):
                 if device_info_qs[0]['vodPrimaryUserID'] != user_id:
                 if device_info_qs[0]['vodPrimaryUserID'] != user_id:
                     return response.json(10033)
                     return response.json(10033)
 
 
-            assert False
             order_id = CommonService.createOrderID()
             order_id = CommonService.createOrderID()
             verify_response = itunesiap.verify(receipt, env=ENV)
             verify_response = itunesiap.verify(receipt, env=ENV)
-            LOGGER.info('苹果内购收据认证响应:{}'.format(eval(verify_response)))
+            LOGGER.info('苹果内购收据认证响应:{}'.format(verify_response))
             product_id = verify_response.receipt.in_app[0]['product_id']
             product_id = verify_response.receipt.in_app[0]['product_id']
 
 
             pay_type = PAY_TYPE_IN_APP_PURCHASE
             pay_type = PAY_TYPE_IN_APP_PURCHASE