瀏覽代碼

优化后台对账

peng 1 年之前
父節點
當前提交
9c9ab6eb0b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/Cron/CronTaskController.py

+ 1 - 1
Controller/Cron/CronTaskController.py

@@ -1634,10 +1634,10 @@ class CronComparedDataView(View):
         count = len(all_order_list)
         paypal_api = paypalrestsdk.Api(PAYPAL_CRD)
         for index, order in enumerate(all_order_list):
+            total += float(order['price'])
             if not order['trade_no']:
                 more_order_list.append(order['orderID'])
                 continue
-            total += float(order['price'])
             if all_order_list.index(order) != index:
                 more_order_list.append(order['orderID'])
                 continue