Browse Source

追加日志

peng 1 năm trước cách đây
mục cha
commit
f0ae6c731a
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      Controller/Cron/CronTaskController.py

+ 5 - 0
Controller/Cron/CronTaskController.py

@@ -1310,6 +1310,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)
@@ -1374,6 +1375,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):
@@ -1501,6 +1504,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())})
@@ -1543,3 +1547,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())))