Explorar o código

无数据为空

chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
45296f1621
Modificáronse 1 ficheiros con 2 adicións e 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()