Browse Source

保存和获取用户按钮

peng 1 năm trước cách đây
mục cha
commit
c972c37ab7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/EquipmentManagerV3.py

+ 1 - 1
Controller/EquipmentManagerV3.py

@@ -1197,7 +1197,7 @@ class EquipmentManagerV3(View):
         if not uid:
             return response.json(444)
         try:
-            device_qs = Device_Info.objects.filter(UID=uid).values('userID', 'audioVideoButton', 'NickName')
+            device_qs = Device_Info.objects.filter(UID=uid).values('userID', 'audioVideoButton', 'userID__username')
             return response.json(0, list(device_qs))
         except Exception as e:
             return response.json(500, repr(e))