|
@@ -832,7 +832,7 @@ class InAppPurchaseView(View):
|
|
|
elif app_type == 2:
|
|
|
bundle_id = "com.ansjer.zccloud"
|
|
|
else:
|
|
|
- return response.json(0)
|
|
|
+ return HttpResponse(status=200)
|
|
|
in_app_purchase_obj = InAppPurchase(bundle_id=bundle_id)
|
|
|
# AppStoreServerAPIClient 用于查询交易信息
|
|
|
client = in_app_purchase_obj.client
|
|
@@ -873,6 +873,7 @@ class InAppPurchaseView(View):
|
|
|
refundPreference=refundPreference,
|
|
|
)
|
|
|
client.send_consumption_data(transaction_id, consumption_request)
|
|
|
+ logger.info(f'内购退款消费数据提交, 订单orderID:{orderID}, transaction_id:{transaction_id}')
|
|
|
in_app_refund.refund_progress = 1
|
|
|
in_app_refund.save()
|
|
|
- return response.json(0)
|
|
|
+ return HttpResponse(status=200)
|