Skip to content

Commit

Permalink
Update CookieProjectServlet.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bjmashibing committed Mar 18, 2020
1 parent 2ccefb3 commit 8f17d88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
if(cookies!=null){
for (Cookie c: cookies) {
String key = c.getName();
if("uid"!=null){
if("uid".equals(key)){
String value = c.getValue();
User u = userService.getUserById(Integer.valueOf(value));
//如果u不等于null,那么有值,直接跳转
Expand Down

0 comments on commit 8f17d88

Please sign in to comment.