peng 1 жил өмнө
parent
commit
9c9ab6eb0b

+ 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