diff --git a/src/main/java/com/budwk/app/web/commons/proc/WkFailProcessor.java b/src/main/java/com/budwk/app/web/commons/proc/WkFailProcessor.java index 5fa871df..902765e7 100644 --- a/src/main/java/com/budwk/app/web/commons/proc/WkFailProcessor.java +++ b/src/main/java/com/budwk/app/web/commons/proc/WkFailProcessor.java @@ -190,24 +190,24 @@ public class WkFailProcessor extends ViewProcessor { //1.判断是否为企业微信浏览器并且对接了企业微信 if (browserPlatform == BrowserPlatform.QI_YE_WEI_XIN && propertiesProxy.getBoolean("wxwork.enable", false)) { //进行企业微信授权 -// String token = getWxWorkToken(); -// if (StrUtil.isNotBlank(token)) { + String token = getWxWorkToken(); + if (StrUtil.isNotBlank(token)) { // //跳转到企业微信授权地址 -// new ServerRedirectView(buildWxWorkOauth2Url()).render(request, response, null); -// } else { + new ServerRedirectView(buildWxWorkOauth2Url()).render(request, response, null); + } else { // //跳转到错误页 别问我为啥错了 我也不知道 首先去检查配置文件里的参数有没有写对 //// new ServerRedirectView(Globals.AppDomain + errorUri).render(request, response, null); -// //跳转到cas登录页 -// String callBackUrl = propertiesProxy.get("cas.client-host-url") + propertiesProxy.get("cas.client-call-back-url") + "?redirect=" + redirect; -// String authUrl = propertiesProxy.get("cas.qi-wx-server-login-url") + "?service=" + URLEncoder.encode(callBackUrl, StandardCharsets.UTF_8); -// new ServerRedirectView(authUrl).render(request, response, null); -// } + //跳转到cas登录页 + String callBackUrl = propertiesProxy.get("cas.client-host-url") + propertiesProxy.get("cas.client-call-back-url") + "?redirect=" + redirect; + String authUrl = propertiesProxy.get("cas.qi-wx-server-login-url") + "?service=" + URLEncoder.encode(callBackUrl, StandardCharsets.UTF_8); + new ServerRedirectView(authUrl).render(request, response, null); + } // 武汉城市职业学院 跳转到企业微信cas登录页 - String callBackUrl = propertiesProxy.get("wecom.wecom-client-host-url") + propertiesProxy.get("wecom.wecom-client-call-back-url") + "?redirect=" + redirect; + /* String callBackUrl = propertiesProxy.get("wecom.wecom-client-host-url") + propertiesProxy.get("wecom.wecom-client-call-back-url") + "?redirect=" + redirect; String authUrl = propertiesProxy.get("wecom.wecom-server-login-url") + "?service=" + URLEncoder.encode(callBackUrl, StandardCharsets.UTF_8); log.info("auth:"+authUrl); - new ServerRedirectView(authUrl).render(request, response, null); + new ServerRedirectView(authUrl).render(request, response, null);*/ } else if (browserPlatform == BrowserPlatform.WEI_XIN && propertiesProxy.getBoolean("wx.enable", false)) { //进行微信公众号授权 //跳转到微信授权页 diff --git a/src/main/resources/static/WW_verify_AmiMu2ZH1GAFuH2L.txt b/src/main/resources/static/WW_verify_AmiMu2ZH1GAFuH2L.txt new file mode 100644 index 00000000..dca6306a --- /dev/null +++ b/src/main/resources/static/WW_verify_AmiMu2ZH1GAFuH2L.txt @@ -0,0 +1 @@ +AmiMu2ZH1GAFuH2L \ No newline at end of file