Browse Source

无数据为空

chenjunkai 6 năm trước cách đây
mục cha
commit
45296f1621
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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()