|
|
@@ -82,7 +82,16 @@ public class SystemAction extends BaseAction {
|
|
|
try {
|
|
|
Object userinfo = request.getSession().getAttribute(SystemConstant.SYSTEM_LOGIN_FLAG);
|
|
|
String userkey = CookiesUtil.loadCookie(SystemConstant.SYSTEM_LOGIN_COOKIE, request);
|
|
|
-
|
|
|
+ if(userkey==null){
|
|
|
+ userkey = request.getHeader("Authorization");
|
|
|
+ if(userkey != null){
|
|
|
+ if(userkey.startsWith("Bearer ")){
|
|
|
+ userkey= userkey.substring(7);
|
|
|
+ }else if(userkey.isEmpty()){
|
|
|
+ userkey= null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if (null == userinfo || "".equals(userkey) || null == userkey) {
|
|
|
msg = new ResultMsg<Object>(SystemConstant.RESULT_STATUS_SUCCESS, "您已经不是登录状态,无须重复注销");
|
|
|
return super.callBackForJsonp(request, response, JSONObject.toJSONString(msg));
|