Commit b1e643c8 by qwmqiuwenmin

fix

parent dc433481
......@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.RestController;
import com.alibaba.dubbo.common.URL;
import com.alibaba.fastjson.JSON;
import com.gic.commons.web.ResponseThreadLocal;
import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.api.dto.StaffDTO;
import com.gic.haoban.manage.api.service.StaffApiService;
......@@ -18,6 +19,7 @@ import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
import com.gic.haoban.manage.web.vo.LoginVO;
import com.gic.wechat.api.service.qywx.QywxCorpApiService;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
......@@ -54,7 +56,12 @@ public class LoginController extends WebBaseController{
AuthRequestUtil.setSessionUser(loginVO);
String redirectUri = config.getHost() + "index";
redirectUri.replace("haoban-manage3-web", "haoban-3/#/");
response.encodeRedirectUrl(redirectUri);
try {
ResponseThreadLocal.get().sendRedirect(redirectUri);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
......
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