Bläddra i källkod

删除记录order_log日志表

linhaohong 9 månader sedan
förälder
incheckning
603fb10bfd
1 ändrade filer med 1 tillägg och 5 borttagningar
  1. 1 5
      Controller/InAppPurchaseController.py

+ 1 - 5
Controller/InAppPurchaseController.py

@@ -331,7 +331,7 @@ class InAppPurchaseView(View):
             orders_qs = Order_Model.objects.filter(transaction_id=transaction_id)
             # 2. 查找云存套餐使用表 和 云存套餐
             if orders_qs.exists():
-                orders_qs.update(status=5, updTime=int(time.time()))
+                # orders_qs.update(status=5, updTime=int(time.time()))
                 orderID = orders_qs[0].orderID
                 uid = orders_qs[0].UID
                 user_id = orders_qs[0].userID
@@ -351,10 +351,6 @@ class InAppPurchaseView(View):
                     topic_name = 'ansjer/generic/{}'.format(thing_name)
                     req_success = CommonService.req_publish_mqtt_msg(thing_name, topic_name, msg)
                     LOGGER.info(f'App Store服务器通知用户退款, 关闭AI:{req_success}')
-                OrderPayLog.objects.create(order_id=orderID, order_no=transaction_id,
-                                           business_name=f'{user_id}App Store退款, 设备uid: {uid}',
-                                           sender="InAppPurchase", request_content=signed_payload,
-                                           created_time=int(time.time()), updated_time=int(time.time()))
 
             elif CONFIG_INFO == CONFIG_US:
                 url = "https://api.zositeche.com/inAppPurchase/AppStoreServerNotifications"