OA单点到部门视图问题处理
This commit is contained in:
parent
b64b79d0a6
commit
c887460d04
@ -126,15 +126,16 @@ public class OauthLoginView extends AbstractOauth {
|
||||
}
|
||||
|
||||
|
||||
AppView appview = new AppView();
|
||||
String tokens = appview.getTokens("http://10.114.11.135:8088/portal/yiliView.html", redirect_uri);
|
||||
App app = new App();
|
||||
System.out.println(">>>>>>>>>>>>>OauthLoginView进入");
|
||||
String tokens = app.getTokens("https://bpm.yili.com:8088/portal/yiliView.html", redirect_uri);
|
||||
if(StringUtils.isEmpty(tokens)){
|
||||
logger.error("获取token为空,请重新输入登录信息获取code");
|
||||
return null;
|
||||
}else {
|
||||
JSONObject jsonObjects = JSONObject.parseObject(tokens);
|
||||
String access_token = jsonObjects.getString("access_token");
|
||||
String userInfo = appview.getUserInfo(access_token);
|
||||
String userInfo = app.getUserInfo(access_token);
|
||||
|
||||
if (StringUtils.isNotEmpty(userInfo)){
|
||||
JSONObject json = JSONObject.parseObject(userInfo);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user