Explorar o código

修改页码问题

chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
bc3f49c382
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Controller/EquipmentManager.py

+ 2 - 0
Controller/EquipmentManager.py

@@ -606,6 +606,8 @@ def queryInterface(request):
     line = int(line)
     tko = TokenObject(token)
     response.lang = tko.lang
+    if page <= 0:
+        return response.json(0)
     if tko.code == 0:
         userID = tko.userID
         dvqs = Device_Info.objects.filter(userID_id=userID)