Browse Source

追加日志

peng 1 year ago
parent
commit
21da043af2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Controller/Cron/CronTaskController.py

+ 5 - 0
Controller/Cron/CronTaskController.py

@@ -1506,6 +1506,7 @@ class CronComparedDataView(View):
 
     @staticmethod
     def thread_compared_paypal_order(order_list, start_time):
+        LOGGER.info('paypal每日对账开始时间:{}'.format(int(time.time())))
         now_time = int(time.time())
         timestamp = int(start_time.timestamp())
         count = len(order_list)
@@ -1570,6 +1571,8 @@ class CronComparedDataView(View):
             order_ids = ','.join(more_order_list)
             DailyReconciliation.objects.create(paypal_num=count, paypal_total=total, time=timestamp,
                                                order_ids=order_ids, creat_time=now_time, upd_time=now_time)
+        LOGGER.info('paypal每日对账结束时间:{}'.format(int(time.time())))
+
 
     @staticmethod
     def compared_wechat_order(response):
@@ -1697,6 +1700,7 @@ class CronComparedDataView(View):
 
     @staticmethod
     def thread_compared_ansjer_order(order_list, start_time):
+        LOGGER.info('后台每日对账开始时间:{}'.format(int(time.time())))
         while True:
             response = requests.get('https://www.zositeche.com/cron/compared/AnsjerOrder',
                                     params={'time': int(start_time.timestamp())})
@@ -1739,3 +1743,4 @@ class CronComparedDataView(View):
             order_ids = ','.join(more_order_list)
             DailyReconciliation.objects.create(order_ids=order_ids, ansjer_total=total, ansjer_num=count,
                                                time=start_timestamp, creat_time=now_time, upd_time=now_time)
+        LOGGER.info('后台每日对账结束时间:{}'.format(int(time.time())))