Skip to content

Commit

Permalink
8.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliang-wt committed Oct 10, 2024
1 parent 7267a40 commit f397e29
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 更新日志

## v8.x.x

##8.1.12(2024-10-10)
* **修改:** 修复Blazor和Vue下多租户工作流的Bug

##8.1.10(2024-7-15)
* **修改:** 修复Layui导出查询条件不变的bug
* **修改:** 修复自带代码生成器Blazor生成代码大小写的问题
Expand Down
12 changes: 11 additions & 1 deletion src/WalkingTec.Mvvm.Core/WorkFlow/ElsaTenantAccessor .cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ public Task<string> GetTenantIdAsync(CancellationToken cancellationToken = defau

string t = null;
var wtm = _hca.HttpContext.RequestServices.GetRequiredService<WTMContext>();
t = wtm?.LoginUserInfo?.CurrentTenant;
if (wtm?.LoginUserInfo != null)
{
t = wtm?.LoginUserInfo?.CurrentTenant;
}
else
{
if (_hca.HttpContext.Request.Cookies.ContainsKey("workflowtenant"))
{
t = _hca.HttpContext.Request.Cookies["workflowtenant"];
}
}
return Task.FromResult(t);
}
}
Expand Down
8 changes: 8 additions & 0 deletions src/WalkingTec.Mvvm.Mvc/_WorkflowController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ public IActionResult Inner()
if (Wtm.LoginUserInfo.Roles.Any(x => x.RoleCode == "001") ||
Wtm.LoginUserInfo.Roles.Any(x => x.RoleName == "流程管理员"))
{
if (Wtm.LoginUserInfo.TenantCode != null)
{
Response.Cookies.Append("workflowtenant", Wtm.LoginUserInfo.TenantCode);
}
else
{
Response.Cookies.Delete("workflowtenant");
}
return View();
}
return Forbid();
Expand Down
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>8.1.11</VersionPrefix>
<VersionPrefix>8.1.12</VersionPrefix>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit f397e29

Please sign in to comment.