|
|
|
@ -19,6 +19,10 @@ import org.springframework.stereotype.Service; |
|
|
|
public class SysMsgServiceImpl implements SysMsgService { |
|
|
|
|
|
|
|
protected SysUserEntity getUser() { |
|
|
|
//处理null |
|
|
|
if(SecurityUtils.getSubject().getPrincipal() == null){ |
|
|
|
return new SysUserEntity(); |
|
|
|
} |
|
|
|
return (SysUserEntity) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
} |
|
|
|
@Autowired |
|
|
|
|