chenjunkai 6 anni fa
parent
commit
45296f1621
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Controller/OrderContrller.py

+ 2 - 0
Controller/OrderContrller.py

@@ -76,6 +76,8 @@ class OrderView(View):
         if uid:
             omqs.filter(UID=uid)
         if not omqs.exists():
+            return response.json(0)
+
             return response.json(173)
             # return response.json(10, '订单不存在')
         count = omqs.count()