Commit 74a74a18 by jinxin

redictUrl替换

parent 7bc2def3
...@@ -1800,7 +1800,10 @@ public class WxStaffController extends WebBaseController { ...@@ -1800,7 +1800,10 @@ public class WxStaffController extends WebBaseController {
public HaobanResponse getAuthUrl() { public HaobanResponse getAuthUrl() {
String suiteId = config.getWxSuiteid(); String suiteId = config.getWxSuiteid();
logger.info("通讯录应用ID:{}", suiteId); logger.info("通讯录应用ID:{}", suiteId);
String redictUrl = config.getHost() + "third-callback"; String host = config.getHost() + "third-callback";
//haoban-manage3-web 替换成 haoban-manage3-wx
String redictUrl = host.replaceAll("-web", "-wx");
logger.info("替换后的url:{}", redictUrl);
String authorizationUrl = qywxCorpApiService.getAuthorizationUrl(suiteId,redictUrl,"snsapi_privateinfo"); String authorizationUrl = qywxCorpApiService.getAuthorizationUrl(suiteId,redictUrl,"snsapi_privateinfo");
return resultResponse(HaoBanErrCode.ERR_1, authorizationUrl); return resultResponse(HaoBanErrCode.ERR_1, authorizationUrl);
} }
......
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