Commit d96556e2 by huangZW

111

parent 6f50a3af
......@@ -5,6 +5,8 @@ import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -18,6 +20,7 @@ import com.gic.haoban.manage.web.errCode.HaoBanErrCode;
@RestController
public class EnterpriseController extends WebBaseController{
private static final String LOGIN_URL = "/haoban-manage3-web/yw-login";
private static Logger logger = LoggerFactory.getLogger(EnterpriseController.class);
@Autowired
private WxEnterpriseApiService wxEnterpriseApiService;
......@@ -32,7 +35,7 @@ public class EnterpriseController extends WebBaseController{
@RequestMapping("yw-login")
public void ywLogin(String wxEnterpriseId,HttpServletResponse httpServletResponse) throws IOException {
String host = GlobalVar.ctxPropertiesMap.get("haoban_service_host");
logger.info("host============================>{}",host);
String url=host+LOGIN_URL+"?wxEnterpriseId="+wxEnterpriseId;
httpServletResponse.sendRedirect(url);
}
......
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