|
@@ -34,11 +34,11 @@ public class AdminInterceptor implements HandlerInterceptor {
|
|
|
}
|
|
|
ServletOutputStream out = response.getOutputStream();
|
|
|
String token = request.getHeader("uid");
|
|
|
-// if (StringUtils.isBlank(token)) {
|
|
|
-// ApiResult invalidTokenResult = ApiResult.error(ApiCode.INVALID_TOKEN);
|
|
|
-// out.write(JSONObject.toJSONString(invalidTokenResult).getBytes("UTF-8"));
|
|
|
-// return false;
|
|
|
-// }
|
|
|
+ if (StringUtils.isBlank(token)) {
|
|
|
+ ApiResult invalidTokenResult = ApiResult.error(ApiCode.INVALID_TOKEN);
|
|
|
+ out.write(JSONObject.toJSONString(invalidTokenResult).getBytes("UTF-8"));
|
|
|
+ return false;
|
|
|
+ }
|
|
|
// String user = redisTemplate.opsForValue().get(Constants.EFUNBOX_ADMIN_TOKEN_PREFIX + token);
|
|
|
// if (StringUtils.isBlank(user)) {
|
|
|
// ApiResult invalidTokenResult = ApiResult.error(ApiCode.INVALID_TOKEN);
|