|
@@ -18,12 +18,14 @@ public class HomeController {
|
|
|
public String index(Model model) throws Exception
|
|
|
{
|
|
|
String oaid = "10123208";
|
|
|
+ //token会过期,建议每次进入前都取一下
|
|
|
DesModel token = sso.encrypt(oaid);
|
|
|
|
|
|
+ //http://localhost:5003替换成实际接口地址
|
|
|
model.addAttribute("mainSrc", "http://localhost:5003/app/main/index.html#!/sso?loginToken="
|
|
|
+ URLEncoder.encode(token.getToken(), "utf-8")
|
|
|
+ "&tm=" + URLEncoder.encode(token.getTm(), "utf-8")
|
|
|
- + "&re=" + URLEncoder.encode("homeTabs", "utf-8"));
|
|
|
+ + "&re=" + URLEncoder.encode("/tabindex", "utf-8"));
|
|
|
|
|
|
return "index";
|
|
|
}
|