陈昶聿
4 天以前 8107dedd85ceec29491293d8ebf69f7d7213aa6b
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java
@@ -20,6 +20,7 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.view.RedirectView;
@@ -58,6 +59,9 @@
    @Autowired
    @Qualifier("sysUserDeptSystemMapper")
    private SysUserDeptMapper sysUserDeptMapper;
    @Value("${spring.profiles.active}")
    private String active;
//    @Value("${wx_appid}")
//    private String wxAppid;
@@ -132,6 +136,13 @@
        String path = null;
        if (StringUtils.isEmpty(systype)) path = sysConfigService.selectConfigByKey("sys.qddz");
        else path = sysConfigService.selectConfigByKey("sys.qddz.yd");
        if (active.equals("nhfy")){
            //南华附一的,先不走免登,直接跳到登陆页
            path = sysConfigService.selectConfigByKey("sys.qddz.yd");
            log.info("【NHFYSSO登录】重定向地址:{}", path);
            return buildRedirect(path);
        }
        log.info("qddz的查询值为,path:{}",path);
        if (StringUtils.isEmpty(path)) {