Ver Fonte

改动头像

chenjunkai há 7 anos atrás
pai
commit
c196730987
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      Controller/UserManger.py

+ 2 - 1
Controller/UserManger.py

@@ -682,7 +682,8 @@ class perfectUserInfoView(TemplateView):
                 userID = tM.accessDict.get('userID', None)
                 if userID:
                     if userIcon != None:
-                        location = 'static/User/Images/' + userID[-11:] + '/'
+                        # location = 'static/User/Images/' + userID[-11:] + '/'
+                        location = 'static/User/Images/' + userID + '/'
                         fss = FileSystemStorage(location = location)
                         if fss.exists(userIcon.name):
                             fss.delete(userIcon.name)