Prechádzať zdrojové kódy

获取设备主用户

chenshibin 4 rokov pred
rodič
commit
052c7c8343
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      Controller/EquipmentManagerV3.py

+ 2 - 2
Controller/EquipmentManagerV3.py

@@ -51,7 +51,7 @@ class EquipmentManagerV3(View):
             elif operation == 'fuzzyQuery':
                 return self.do_fuzzy_query(userID, request_dict, response)
             elif operation == 'mainUserDevice':
-                return self.do_mainUserDevice(userID, request_dict, response)
+                return self.do_mainUserDevice( request_dict, response)
             else:
                 return response.json(414)
         else:
@@ -594,6 +594,6 @@ class EquipmentManagerV3(View):
 
     def do_mainUserDevice(self, request_dict, response):
         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)
         return response.json(0, dvql)