Przeglądaj źródła

无数据为空

chenjunkai 6 lat temu
rodzic
commit
45296f1621
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      Controller/OrderContrller.py

+ 2 - 0
Controller/OrderContrller.py

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