浏览代码

获取设备主用户

chenshibin 4 年之前
父节点
当前提交
052c7c8343
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Controller/EquipmentManagerV3.py

+ 2 - 2
Controller/EquipmentManagerV3.py

@@ -51,7 +51,7 @@ class EquipmentManagerV3(View):
             elif operation == 'fuzzyQuery':
             elif operation == 'fuzzyQuery':
                 return self.do_fuzzy_query(userID, request_dict, response)
                 return self.do_fuzzy_query(userID, request_dict, response)
             elif operation == 'mainUserDevice':
             elif operation == 'mainUserDevice':
-                return self.do_mainUserDevice(userID, request_dict, response)
+                return self.do_mainUserDevice( request_dict, response)
             else:
             else:
                 return response.json(414)
                 return response.json(414)
         else:
         else:
@@ -594,6 +594,6 @@ class EquipmentManagerV3(View):
 
 
     def do_mainUserDevice(self, request_dict, response):
     def do_mainUserDevice(self, request_dict, response):
         vodPrimaryUserID = request_dict.get('vodPrimaryUserID')
         vodPrimaryUserID = request_dict.get('vodPrimaryUserID')
-        qs =Device_User.objects.filter(userID=vodPrimaryUserID).values('NickName', 'username', 'userEmail', 'phone')
+        qs = Device_User.objects.filter(userID=vodPrimaryUserID).values('NickName', 'username', 'userEmail', 'phone')
         dvql = CommonService.qs_to_list(qs)
         dvql = CommonService.qs_to_list(qs)
         return response.json(0, dvql)
         return response.json(0, dvql)