|
@@ -144,6 +144,7 @@ class perfectUserInfoView(TemplateView):
|
|
|
return response.json(104)
|
|
|
userIconPath = kwargs.get('userIconPath', None)
|
|
|
userContent = kwargs.get('userContent', None)
|
|
|
+ userIconUrl = ""
|
|
|
if userIconPath:
|
|
|
userIconUrl = SERVER_DOMAIN + 'account/getAvatar/' + userIconPath
|
|
|
if userContent:
|
|
@@ -165,7 +166,7 @@ class perfectUserInfoView(TemplateView):
|
|
|
for k, v in enumerate(res["datas"]):
|
|
|
res['datas'][k]['fields'].pop('password')
|
|
|
userIconPath = res['datas'][k]['fields']['userIconPath']
|
|
|
- if userIconPath:
|
|
|
+ if userIconPath and userIconUrl != '':
|
|
|
res['datas'][k]['fields']['userIconUrl'] = userIconUrl
|
|
|
return response.json(0, res)
|
|
|
|