|
|
@ -84,12 +84,15 @@ public class MustLoginAspect { |
|
|
|
return result; |
|
|
|
} |
|
|
|
//必须登录,未登录直接返回未登录相关信息
|
|
|
|
if (response == null || response.getData() == null) { |
|
|
|
if (response == null) { |
|
|
|
return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); |
|
|
|
} |
|
|
|
if (response.getCode().intValue() != CodeEnum.SUCCESS.getCode().intValue()) { |
|
|
|
return response; |
|
|
|
} |
|
|
|
if (response.getData() == null) { |
|
|
|
return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN); |
|
|
|
} |
|
|
|
|
|
|
|
JSONObject json = JSONObject.parseObject(JSON.toJSONString(response.getData())); |
|
|
|
Long userId = json.getLong("id"); |
|
|
|