diff --git a/projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl b/projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl index 600cf8f4b..cec747b40 100644 --- a/projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl +++ b/projects/fangjia-open/src/main/webapp/user/aiLoginPage.ftl @@ -119,7 +119,7 @@ if (username && token) { // 自动登录 console.log("自动登录用户:" + username); - window.location.href = "district/weXinList?type=gb"; + window.location.href = "../district/weXinList?type=gb&cityName=上海"; // 可以在这里用 token 验证用户身份,或者直接跳转到主页面 // 比如:window.location.href = 'dashboard.html'; } else { @@ -148,6 +148,7 @@ if(re.result == "fail"){ $.toast(re.msg); } else { + setLoginCookie(username, re.token); window.location.href = "reqCityChoicePage?type=gb"; } },error:function (data, status) {