ext_wecomOpenAuth.ext.jsp 572 B

12345678910111213
  1. <%@ page language="java" import="base.SsC" pageEncoding="UTF-8"%>
  2. <%@ page import="base.WechatC" %>
  3. <html>
  4. <head>
  5. </head>
  6. <body>
  7. <script>
  8. window.document.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+ <%=WechatC.WECOM_corpId%> +
  9. "&redirect_uri=http://localhost:8080/extRoot?type=${type}&token=${token}&title=${title}&dest=${dest}"+ <%-- 这里的 &token= 就是 token,不是 &ssToken=。Lin --%>
  10. "&response_type=code&scope=snsapi_base&agentid="+ <%=WechatC.WECOM_agentId%> +"&state=1236116#wechat_redirect";
  11. </script>
  12. </body>
  13. </html>