chenjunkai 6 years ago
parent
commit
ed524956cf
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Controller/OrderContrller.py

+ 3 - 2
Controller/OrderContrller.py

@@ -84,8 +84,9 @@ class OrderView(View):
         data = []
         nowTime = int(time.time())
         for d in order_list:
-            if d['addTime']+3600 < nowTime:
-                d['status'] = 3
+            if d['status'] != 1:
+                if d['addTime'] + 3600 < nowTime:
+                    d['status'] = 3
             data.append(d)
 
         return response.json(0, {'data': data, 'count': count})