소스 검색

改动头像

chenjunkai 7 년 전
부모
커밋
c196730987
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)