|
|
|
@ -137,12 +137,14 @@ public class TbUploadFileNewController {
|
|
|
|
|
String token = "";
|
|
|
|
|
HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;
|
|
|
|
|
Cookie[] cookies = httpServletRequest.getCookies();
|
|
|
|
|
for(Cookie cookie : cookies) {
|
|
|
|
|
//获取cookie的名字
|
|
|
|
|
String cookieName = cookie.getName();
|
|
|
|
|
token=cookie.getValue();
|
|
|
|
|
System.out.println(cookieName);
|
|
|
|
|
System.out.println(cookieName+" : "+ cookie.getValue() );
|
|
|
|
|
if (cookies != null){
|
|
|
|
|
for(Cookie cookie : cookies) {
|
|
|
|
|
//获取cookie的名字
|
|
|
|
|
String cookieName = cookie.getName();
|
|
|
|
|
token=cookie.getValue();
|
|
|
|
|
System.out.println(cookieName);
|
|
|
|
|
System.out.println(cookieName+" : "+ cookie.getValue() );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
keyName = token+"==="+name;
|
|
|
|
|
Object keyValue = redisTemplate.opsForValue().get(keyName);
|
|
|
|
|