Commit b940bbfb by huangZW

111

parent 03517130
......@@ -79,18 +79,22 @@ public class LoginController extends WebBaseController{
//运维登录
@IgnoreLogin
@RequestMapping("yw-login")
public HaobanResponse ywLogin(String wxEnterpriseId) {
public void ywLogin(String wxEnterpriseId,HttpServletResponse response) {
//TODO 获取超级管理员账号接口
StaffDTO staff = new StaffDTO();
StaffDTO staff = staffApiService.selectById("1");
LoginVO loginVO = new LoginVO();
loginVO.setWxEnterpriseId(wxEnterpriseId);
loginVO.setStaffDTO(staff);
AuthRequestUtil.setSessionUser(loginVO);
return resultResponse(HaoBanErrCode.ERR_1, loginVO);
}
String redirectUri = config.getHost() + "index";
redirectUri = redirectUri.replace("haoban-manage3-web", "haoban-3/#");
try {
response.sendRedirect(redirectUri);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} }
@RequestMapping("login-out")
public HaobanResponse loginOut() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment