kongzy
2023-10-23 1eeae82f74cbb3469ad8931e45b6fc77a945b912
src/main/java/com/nanometer/smartlab/controller/BaseController.java
@@ -18,6 +18,12 @@
    @Value("${institute.name}")
    private String title;
    @Value("${institute.logo}")
    private String logo;
    @Value("${activeEnv}")
    private String activeEnv;
    public Subject getSubject() {
        return SecurityUtils.getSubject();
    }
@@ -75,4 +81,15 @@
        }
        return this.title;
    }
    public String getLogo(){
        if(StringUtils.isBlank(this.logo)){
            return "/resources/images/中国科学院苏州纳米技术与纳米仿生研究所logo.png";
        }
        return this.logo;
    }
    public String getActiveEnv(){
        return this.activeEnv;
    }
}