更新域名

fix issue #I3ZCIX 可以控制流程审批过程中表单项是否可写
This commit is contained in:
yubaolee
2021-07-22 19:33:55 +08:00
parent 154583889a
commit c7acca904a
38 changed files with 131 additions and 63 deletions

View File

@@ -1,5 +1,5 @@
// <copyright file="FlowInstancesController.cs" company="openauth.me">
// Copyright (c) 2019 openauth.me. All rights reserved.
// <copyright file="FlowInstancesController.cs" company="openauth.net.cn">
// Copyright (c) 2019 openauth.net.cn. All rights reserved.
// </copyright>
// <author>www.cnblogs.com/yubaolee</author>
// <date>2018-09-06</date>

View File

@@ -19,13 +19,24 @@ namespace OpenAuth.WebApi.Controllers
{
private readonly FormApp _app;
/// <summary>
/// 获取表单
/// </summary>
/// <param name="id">表单ID</param>
/// <param name="canWriteFormItemIds">针对动态表单项读写控制</param>
/// <returns></returns>
[HttpGet]
public Response<FormResp> Get(string id)
public Response<FormResp> Get(string id, string canWriteFormItemIds)
{
var result = new Response<FormResp>();
try
{
result.Result = _app.FindSingle(id);
if (!string.IsNullOrEmpty(canWriteFormItemIds))
{
result.Result.CanWriteFormItemIds = JsonHelper.Instance.Deserialize<string[]>(canWriteFormItemIds);
}
}
catch (Exception ex)
{

View File

@@ -1,5 +1,5 @@
// <copyright file="GlobalHttpHeaderOperationFilter.cs" company="openauth.me">
// Copyright (c) 2019 openauth.me. All rights reserved.
// <copyright file="GlobalHttpHeaderOperationFilter.cs" company="openauth.net.cn">
// Copyright (c) 2019 openauth.net.cn. All rights reserved.
// </copyright>
// <author>www.cnblogs.com/yubaolee</author>
// <date>2019-01-05</date>

View File

@@ -155,8 +155,8 @@ namespace OpenAuth.WebApi
// {
// origins = new []
// {
// "http://demo.openauth.me:1803",
// "http://demo.openauth.me:52789"
// "http://demo.openauth.net.cn:1803",
// "http://demo.openauth.net.cn:52789"
// };
// }
// services.AddCors(option=>option.AddPolicy("cors", policy =>

View File

@@ -1,5 +1,5 @@
// <copyright file="UserSessionControllerTest.cs" company="OpenAuth.Mvc">
// Copyright (c) http://www.openauth.me. All rights reserved.
// Copyright (c) http://www.openauth.net.cn. All rights reserved.
// </copyright>
// <summary>
// 测试加载用户菜单

View File

@@ -13,7 +13,7 @@
},
"AppSetting": {
"IdentityServerUrl": "", //IdentityServer服务器地址。如果为空则不启用OAuth认证
//"IdentityServerUrl": "http://demo.openauth.me:12796", //IdentityServer服务器地址。如果为空则不启用OAuth认证
//"IdentityServerUrl": "http://demo.openauth.net.cn:12796", //IdentityServer服务器地址。如果为空则不启用OAuth认证
"DbTypes": {
"OpenAuthDBContext":"MySql" //数据库类型SqlServer、MySql、Oracle
},