chenjunkai пре 6 година
родитељ
комит
ed524956cf
1 измењених фајлова са 3 додато и 2 уклоњено
  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})