Browse Source

更新最新版本

chenjunkai 6 years ago
parent
commit
74bca15ee9
2 changed files with 2 additions and 4 deletions
  1. 1 1
      Controller/FeedBackInfo.py
  2. 1 3
      Object/ResponseObject.py

+ 1 - 1
Controller/FeedBackInfo.py

@@ -114,7 +114,7 @@ class FeedBackInfo(View):
                 feedback_info.content = content
                 feedback_info.save()
             except Exception as e:
-                return response.json(302, {'details': repr(e)})
+                return response.json(10, {'details': repr(e)})
             else:
                 now_time = timezone.localtime(timezone.now())
                 return response.json(0, {'update_success': 1,

+ 1 - 3
Object/ResponseObject.py

@@ -58,7 +58,6 @@ class ResponseObject(object):
             193: 'role can not be deleted!',
             194: 'Update role error',
             195: 'role can not be updated!',
-            302: 'Please ReLogin! Update Token to database error',
             307: 'Please ReLogin! The Token has expired!',
             310: 'Please ReLogin! The userID in the token is None!',
             311: 'Please ReLogin! The token is None!',
@@ -147,9 +146,8 @@ class ResponseObject(object):
             193: '未知的错误导致角色不能被删除!',
             194: '更新角色错误',
             195: '未知的错误导致角色无法更新!',
-            302: '请重新登录! 更新令牌到数据库错误',
             307: '请重新登录! 令牌已经过期!',
-            310: '请重新登录! 令牌中的用户名不存在!',
+            310: '请重新登录! 令牌用户名不存在!',
             311: '请重新登录! 令牌为空!',
             403: 'API错误!',
             404: '您没有访问的权限!',