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

+ 1 - 0
Controller/shareUserPermission.py

@@ -66,6 +66,7 @@ class searchUserView(View):
                     device_Info_dict = {}
                 sqlList[0]['device_info'] = device_Info_list
             sqlDict = dict(zip(["datas"], [sqlList]))
+            sqlDict['datas']['fields']['username'] = user_list[0]["NickName"] if user_list[0]["NickName"] is not None else ''
             return response.json(0, sqlDict)
         else:
             return response.json(102)