Explorar el Código

无数据为空

chenjunkai hace 6 años
padre
commit
45296f1621
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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()