mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 18:34:44 +08:00
更新域名
fix issue #I3ZCIX 可以控制流程审批过程中表单项是否可写
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 =>
|
||||
|
||||
@@ -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>
|
||||
// 测试加载用户菜单
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user