|
@@ -12,6 +12,7 @@ import com.management.platform.service.UserService;
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
|
import com.management.platform.util.MessageUtils;
|
|
|
import com.management.platform.util.UserAgentUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -103,8 +104,10 @@ public class AuthRedirectController {
|
|
|
}
|
|
|
}
|
|
|
reqParam.put("hasTriedAutoLogin", 1);
|
|
|
- System.out.println("state========"+state);
|
|
|
- reqParam.put("state", state);
|
|
|
+ if (!StringUtils.isEmpty(state) && state.length() > 1) {
|
|
|
+ reqParam.put("path", state);
|
|
|
+ }
|
|
|
+
|
|
|
String redirecUrl = null;
|
|
|
String router = "index";
|
|
|
if (companyId > 0) {
|
|
@@ -121,7 +124,6 @@ public class AuthRedirectController {
|
|
|
} else {
|
|
|
redirecUrl = "https://worktime.ttkuaiban.com/#/" + router;
|
|
|
}
|
|
|
- System.out.println("redirecUrl="+redirecUrl);
|
|
|
ModelAndView modelAndView = new ModelAndView(
|
|
|
new RedirectView(redirecUrl), reqParam);
|
|
|
|