|
@@ -147,7 +147,7 @@ class InAppPurchaseView(View):
|
|
|
if str(subscription.status) == "Status.ACTIVE":
|
|
|
key = str(originalTransaction_id) + "_SUBSCRIBED"
|
|
|
redis_originalTransaction_id = redis_obj.get_data(key)
|
|
|
- if redis_originalTransaction_id != originalTransaction_id:
|
|
|
+ if redis_originalTransaction_id != str(originalTransaction_id):
|
|
|
return response.json(10048, f"订阅状态为 {subscription.status} ")
|
|
|
|
|
|
pay_type = PAY_TYPE_IN_APP_PURCHASE
|
|
@@ -310,10 +310,10 @@ class InAppPurchaseView(View):
|
|
|
ali_sms = AliSmsObject()
|
|
|
ali_sms.send_code_sms_cloud(phone=phone, params=params, sign_name=sign_ms, temp_msg=temp_msg)
|
|
|
|
|
|
- @staticmethod
|
|
|
- def app_store_server_notifications(request):
|
|
|
+ @classmethod
|
|
|
+ def app_store_server_notifications(cls, request):
|
|
|
+ logger = logging.getLogger('apple_pay')
|
|
|
try:
|
|
|
- logger = logging.getLogger('apple_pay')
|
|
|
logger.info('App Store服务器通知请求类型:{}'.format(request.method))
|
|
|
logger.info('App Store服务器通知参数:{}'.format(request.POST))
|
|
|
logger.info('App Store服务器通知请求body:{}'.format(request.body))
|