Browse Source

控制加入

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

+ 2 - 0
Controller/OrderContrller.py

@@ -72,6 +72,8 @@ class OrderView(View):
             dvqs = Device_Info.objects.filter(id=did).values('UID')
             if dvqs.exists():
                 omqs.filter(UID=dvqs[0]['UID'])
+            else:
+                return response.json(0)
         if not omqs.exists():
             return response.json(10, '订单不存在')
         if did: