Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

租户id获取不到 #2180

Closed
maxlkk opened this issue Nov 21, 2023 · 2 comments
Closed

租户id获取不到 #2180

maxlkk opened this issue Nov 21, 2023 · 2 comments

Comments

@maxlkk
Copy link

maxlkk commented Nov 21, 2023

版本号:1.6.5
问题描述:

yml中开启了租户隔离,url上拼接了tenantId,没有拼token,发起请求后后端JimuReportTokenService 无法从请求头中获取tenantId,但是有token。(之前有发起过拼接了token 没有拼tenantId的请求)
是什么原因导致

错误日志&截图:

image
image

重现步骤:

友情提示(为了提高issue处理效率):

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供[报表设计配置或SQL脚本]或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@zhangdaiscott
Copy link
Member

ws

@1298191366
Copy link

1298191366 commented Nov 27, 2023

在接口中你可以通过X-Tenant-Id获取租户id,后续版本支持tenantId
image

<dependency>
  <groupId>org.jeecgframework.jimureport</groupId>
  <artifactId>jimureport-spring-boot-starter</artifactId>
  <version>1.6.6</version>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants