*/
@RouteBind(path = "/")
public class WebadminController extends BaseController {
public void index() {
this.setAttr("StaticCfg", new StaticCfg());
setAttr("root",getRequest().getContextPath());
// Record m=this.getSessionAttr("manager");
Record m=getCurrentUser();
if(m==null){
this.setAttr("StaticCfg", new StaticCfg());
}else{
List<Record> menus=fetchMenu(this.getCookie("user_token"),m.getLong("id"));
if(menus!=null&&menus.isEmpty()==false){
this.setAttr("menus",menus);
this.setAttr("pid", menus.get(0).getLong("id"));