Commit 8c80d5be authored by liqin's avatar liqin 💬

bug fixed

parent eb8846ae
...@@ -171,6 +171,7 @@ public class VideoContentCatController extends BaseController { ...@@ -171,6 +171,7 @@ public class VideoContentCatController extends BaseController {
//todo 删除中间关联表 //todo 删除中间关联表
return getSuccessResult(); return getSuccessResult();
} }
......
...@@ -117,7 +117,7 @@ public class BaseController implements Serializable { ...@@ -117,7 +117,7 @@ public class BaseController implements Serializable {
*/ */
protected Map<String, Object> getFailResult() { protected Map<String, Object> getFailResult() {
Map<String, Object> map = new LinkedHashMap<>(); Map<String, Object> map = new LinkedHashMap<>();
map.put(RESULT_INFO_ENUM.RESULT_CODE.getKey(), "400"); map.put(RESULT_INFO_ENUM.RESULT_CODE.getKey(), RESPONSE_CODE_ENUM.SERVER_ERROR.getResultCode());
map.put(RESULT_INFO_ENUM.RESULT_MSG.getKey(), RESPONSE_CODE_ENUM.SERVER_ERROR.getMessage()); map.put(RESULT_INFO_ENUM.RESULT_MSG.getKey(), RESPONSE_CODE_ENUM.SERVER_ERROR.getMessage());
return map; return map;
} }
...@@ -143,7 +143,7 @@ public class BaseController implements Serializable { ...@@ -143,7 +143,7 @@ public class BaseController implements Serializable {
*/ */
protected Map<String, Object> getFailResult(String msg) { protected Map<String, Object> getFailResult(String msg) {
Map<String, Object> map = new LinkedHashMap<>(); Map<String, Object> map = new LinkedHashMap<>();
map.put(RESULT_INFO_ENUM.RESULT_CODE.getKey(), RESPONSE_CODE_ENUM.PARAM_NOT_VALID.getResultCode()); map.put(RESULT_INFO_ENUM.RESULT_CODE.getKey(), RESPONSE_CODE_ENUM.SERVER_ERROR.getResultCode());
map.put(RESULT_INFO_ENUM.RESULT_MSG.getKey(), msg); map.put(RESULT_INFO_ENUM.RESULT_MSG.getKey(), msg);
return map; return map;
} }
...@@ -204,7 +204,7 @@ public class BaseController implements Serializable { ...@@ -204,7 +204,7 @@ public class BaseController implements Serializable {
if (authorization.startsWith("Bearer ")) { if (authorization.startsWith("Bearer ")) {
authorization = authorization.substring(7); authorization = authorization.substring(7);
} }
}else { } else {
throw new AuthenticationException("token失效,请重新登录"); throw new AuthenticationException("token失效,请重新登录");
} }
return JwtTokenUtil.getEmployeeId(authorization); return JwtTokenUtil.getEmployeeId(authorization);
...@@ -221,7 +221,7 @@ public class BaseController implements Serializable { ...@@ -221,7 +221,7 @@ public class BaseController implements Serializable {
if (authorization.startsWith("Bearer ")) { if (authorization.startsWith("Bearer ")) {
authorization = authorization.substring(7); authorization = authorization.substring(7);
} }
}else { } else {
throw new AuthenticationException("token失效,请重新登录"); throw new AuthenticationException("token失效,请重新登录");
} }
return JwtTokenUtil.getUsername(authorization); return JwtTokenUtil.getUsername(authorization);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment