yuhaitao14 7 years ago
parent
commit
d21daadc5f

+ 2 - 2
shop/src/main/java/com/zskk/shop/controller/AbstractController.java

@@ -63,13 +63,13 @@ public class AbstractController {
 			value = getCookieValue(USER_COOKIE_NAME);
 		} catch (Exception e) {
 			ZSKKError error = new ZSKKError(ErrorConstant.NO_LOGIN_ERROR.getCode(),
-					uccenter + "/login/authorize?redirect=" + this.getRefererUrl());
+					uccenter + "/login/authorize?needtoken=false&redirect=" + this.getRefererUrl());
 			throw new ZSKKException(error);
 		}
 
 		if (value == null) {
 			ZSKKError error = new ZSKKError(ErrorConstant.NO_LOGIN_ERROR.getCode(),
-					uccenter + "/login/authorize?redirect=" + this.getRefererUrl());
+					uccenter + "/login/authorize?needtoken=false&redirect=" + this.getRefererUrl());
 			throw new ZSKKException(error);
 		}
 		UserInfoBean user = JSON.parseObject(value, UserInfoBean.class);