Commit 94394695 by qwmqiuwenmin

fix

parent fa655ab4
......@@ -37,7 +37,7 @@ public class LoginController extends WebBaseController{
private Config config;
@RequestMapping("login")
public HaobanResponse login(String auth_code) {
public String login(String auth_code) {
String siteId = config.getSuiteId();
String userId = qywxCorpApiService.getUserInfoSimple(siteId,auth_code);
logger.info("【企业微信登录】userId={},auth_code={}",userId,auth_code);
......@@ -49,7 +49,8 @@ public class LoginController extends WebBaseController{
loginVO.setWxEnterpriseId(staff.getWxEnterpriseId());
loginVO.setStaffDTO(staff);
AuthRequestUtil.setSessionUser(loginVO);
return resultResponse(HaoBanErrCode.ERR_1, loginVO);
return "redirect:https://www.gicdev.com/haoban-3/#/index";
}
......
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