|
@@ -111,6 +111,13 @@ public class OAToSHR extends HttpServlet {
|
|
|
throw new RuntimeException("redirect_uri1不能为空! 请检查配置文件: " + propPath);
|
|
|
}
|
|
|
String redirectUrl = req.getParameter("redirect");
|
|
|
+ if (StringUtils.isEmpty(redirectUrl)) {
|
|
|
+ String serverName = prop.getProperty("serverName");
|
|
|
+ if (StringUtils.isEmpty(serverName)) {
|
|
|
+ throw new RuntimeException("serverName不能为空! 请检查配置文件: " + propPath);
|
|
|
+ }
|
|
|
+ redirectUrl = serverName + "/shr/dynamic.do?uipk=shr.perself.homepage";
|
|
|
+ }
|
|
|
logger.error("callBack redirectUrl" + redirectUrl);
|
|
|
String encrypt = encrypt(redirectUrl, SECRETKEY);
|
|
|
logger.error("callBack encrypt" + encrypt);
|