修改
This commit is contained in:
@@ -35,7 +35,6 @@ public class UserPageController extends BaseController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ITagsService tagsService;
|
private ITagsService tagsService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户页面
|
* 用户页面
|
||||||
*
|
*
|
||||||
@@ -44,20 +43,26 @@ public class UserPageController extends BaseController {
|
|||||||
@RequestMapping("/user")
|
@RequestMapping("/user")
|
||||||
public String user(@RequestParam(defaultValue = "discussion") String type, HttpServletRequest request, ModelMap map) {
|
public String user(@RequestParam(defaultValue = "discussion") String type, HttpServletRequest request, ModelMap map) {
|
||||||
|
|
||||||
|
// type 判断
|
||||||
if (type.equals("discussion")) {
|
if (type.equals("discussion")) {
|
||||||
map.put("discussion", "active");
|
map.put("discussion", "active");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type.equals("change")) {
|
if (type.equals("change")) {
|
||||||
map.put("change", "active");
|
map.put("change", "active");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type.equals("like")) {
|
if (type.equals("like")) {
|
||||||
map.put("like", "active");
|
map.put("like", "active");
|
||||||
}
|
}
|
||||||
|
|
||||||
UserInfo user = getUserInfo(request);
|
UserInfo user = getUserInfo(request);
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
map.put("username", user.getUsername());
|
map.put("username", user.getUsername());
|
||||||
map.put("data", "Jiscuss 用户:" + user.getUsername());
|
map.put("data", "Jiscuss 用户:" + user.getUsername());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return "user";
|
return "user";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user