|
@@ -97,7 +97,7 @@ class UserRelatedView(View):
|
|
users = device_user_qs.first()
|
|
users = device_user_qs.first()
|
|
nick_name = users['NickName']
|
|
nick_name = users['NickName']
|
|
user_icon_path = str(users['userIconPath'])
|
|
user_icon_path = str(users['userIconPath'])
|
|
- if user_icon_path and user_icon_path.find('static/') != -1:
|
|
|
|
|
|
+ if user_icon_path:
|
|
user_icon_path = user_icon_path.replace('static/', '').replace('\\', '/')
|
|
user_icon_path = user_icon_path.replace('static/', '').replace('\\', '/')
|
|
user_icon_url = SERVER_DOMAIN + 'account/getAvatar/' + user_icon_path
|
|
user_icon_url = SERVER_DOMAIN + 'account/getAvatar/' + user_icon_path
|
|
else:
|
|
else:
|