peng 1 жил өмнө
parent
commit
f0ae6c731a

+ 5 - 0
Controller/Cron/CronTaskController.py

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