|
@@ -66,13 +66,13 @@ public class AbstractController {
|
|
value = getCookieValue(USER_COOKIE_NAME);
|
|
value = getCookieValue(USER_COOKIE_NAME);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
ZSKKError error = new ZSKKError(ErrorConstant.NO_LOGIN_ERROR.getCode(),
|
|
ZSKKError error = new ZSKKError(ErrorConstant.NO_LOGIN_ERROR.getCode(),
|
|
- uccenter + "/login/authorize?needtoken=false&redirect=" + this.getRefererUrl());
|
|
|
|
|
|
+ uccenter + "login/authorize?needtoken=false&mustLogin=1&redirect=" + this.getRefererUrl());
|
|
throw new ZSKKException(error);
|
|
throw new ZSKKException(error);
|
|
}
|
|
}
|
|
|
|
|
|
if (value == null) {
|
|
if (value == null) {
|
|
ZSKKError error = new ZSKKError(ErrorConstant.NO_LOGIN_ERROR.getCode(),
|
|
ZSKKError error = new ZSKKError(ErrorConstant.NO_LOGIN_ERROR.getCode(),
|
|
- uccenter + "/login/authorize?needtoken=false&redirect=" + this.getRefererUrl());
|
|
|
|
|
|
+ uccenter + "login/authorize?needtoken=false&mustLogin=1&redirect=" + this.getRefererUrl());
|
|
throw new ZSKKException(error);
|
|
throw new ZSKKException(error);
|
|
}
|
|
}
|
|
UserInfoBean user = JSON.parseObject(value, UserInfoBean.class);
|
|
UserInfoBean user = JSON.parseObject(value, UserInfoBean.class);
|
|
@@ -151,4 +151,16 @@ public class AbstractController {
|
|
return url;
|
|
return url;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public String getUccenter() {
|
|
|
|
+ return uccenter;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getUcweb() {
|
|
|
|
+ return ucweb;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getMyhost() {
|
|
|
|
+ return myhost;
|
|
|
|
+ }
|
|
}
|
|
}
|