Explorar o código

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

locky hai 1 ano
pai
achega
c0359d0899
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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:
                     return response.json(10033)
 
-            assert False
             order_id = CommonService.createOrderID()
             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']
 
             pay_type = PAY_TYPE_IN_APP_PURCHASE