| | |
| | | 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; |
| | |
| | | @Autowired |
| | | @Qualifier("sysUserDeptSystemMapper") |
| | | private SysUserDeptMapper sysUserDeptMapper; |
| | | |
| | | @Value("${spring.profiles.active}") |
| | | private String active; |
| | | |
| | | // @Value("${wx_appid}") |
| | | // private String wxAppid; |
| | |
| | | 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)) { |