fix url权限认证时租户id获取不到的问题

This commit is contained in:
zlt
2019-09-05 21:34:33 +08:00
parent b060d8ee16
commit 4d7dbb7bdc
3 changed files with 9 additions and 0 deletions
@@ -26,6 +26,8 @@ public class TenantInterceptor implements HandlerInterceptor {
//保存租户id
if(StrUtil.isNotEmpty(tenantId)){
TenantContextHolder.setTenant(tenantId);
} else {
TenantContextHolder.clear();
}
return true;
}