bug处理
This commit is contained in:
@@ -784,10 +784,6 @@ public class AuthorizeService : IAuthorizeService, IDynamicApiController, ITrans
|
||||
{
|
||||
var tenantId = _userManager.TenantId;
|
||||
var list = await GetOnlineUserList(tenantId);
|
||||
if (list == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var user = list.Find(it => it.tenantId == tenantId && it.userId == id);
|
||||
if (user != null)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 业务实现:分组管理
|
||||
/// 版 本:V3.3.3
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2022.03.11.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "Permission", Name = "Group", Order = 162)]
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 分级管理
|
||||
/// 版 本:V3.2.0
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021.09.27.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "Permission", Name = "OrganizeAdministrator", Order = 166)]
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace JNPF.Systems;
|
||||
/// 机构管理.
|
||||
/// 组织架构:公司》部门》岗位》用户
|
||||
/// 版 本:V3.2.0
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021.06.07.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "Permission", Name = "Organize", Order = 165)]
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 业务实现:岗位管理.
|
||||
/// 版 本:V3.2.0
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021.06.07.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "Permission", Name = "Position", Order = 162)]
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 常用字段
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "CommonFields", Order = 201)]
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据管理
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "DataModel", Order = 208)]
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据接口日志
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "DataInterfaceLog", Order = 204)]
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据接口
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:引迈信息技术有限公司(https://www.jnpfsoft.com)
|
||||
/// 作 者:JNPF开发平台组
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "DataInterface", Order = 204)]
|
||||
@@ -312,7 +314,6 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
/// <returns></returns>
|
||||
[HttpPost("{id}/Actions/Preview")]
|
||||
[UnitOfWork]
|
||||
[AllowAnonymous]
|
||||
public async Task<dynamic> Preview(string id, [FromBody] DataInterfacePreviewInput input)
|
||||
{
|
||||
_configId = _userManager.TenantId;
|
||||
@@ -324,11 +325,6 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
{
|
||||
dicParameters = input.paramList.ToDictionary(x => x.field, y => y.defaultValue);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(info.Path) && !info.Path.StartsWith("http"))
|
||||
{
|
||||
info.Path = $"{App.HttpContext.Request.Scheme}://{App.HttpContext.Request.Host}{info.Path}";
|
||||
}
|
||||
VerifyRequired(info, dicParameters);
|
||||
ReplaceParameterValue(info, dicParameters);
|
||||
if (info?.DataType == 1)
|
||||
@@ -562,7 +558,6 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
[UnitOfWork]
|
||||
public async Task<dynamic> GetFields(string id, [FromBody] DataInterfacePreviewInput input)
|
||||
{
|
||||
Object tempObj = null;
|
||||
try
|
||||
{
|
||||
//modifyby zhoukeda 20230803
|
||||
@@ -574,22 +569,12 @@ public class DataInterfaceService : IDataInterfaceService, IDynamicApiController
|
||||
}
|
||||
else
|
||||
{
|
||||
tempObj = result;
|
||||
var list = result.ToObject<List<Dictionary<string, object>>>().FirstOrDefault().Keys.ToList();
|
||||
return list;
|
||||
return result.ToObject<List<Dictionary<string, object>>>().FirstOrDefault().Keys.ToList();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
try
|
||||
{
|
||||
return JsonConvert.DeserializeObject<List<Dictionary<string,object>>>(JsonConvert.SerializeObject(tempObj)).FirstOrDefault().Keys.ToList();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
throw Oops.Oh(ErrorCode.COM1020);
|
||||
}
|
||||
|
||||
throw Oops.Oh(ErrorCode.COM1020);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据同步
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "DataSync", Order = 209)]
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据备份
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "DataBackup", Order = 207)]
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据连接
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "DataSource", Order = 205)]
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 字典数据
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "DictionaryData", Order = 203)]
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 字典分类
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "DictionaryType", Order = 202)]
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace JNPF.Systems.System;
|
||||
/// <summary>
|
||||
/// 接口认证
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "InterfaceOauth", Order = 202)]
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 功能按钮
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "ModuleButton", Order = 212)]
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 功能列表
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "ModuleColumn", Order = 213)]
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据权限连接管理
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "ModuleDataAuthorizeLink", Order = 214)]
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据权限
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "ModuleDataAuthorizeScheme", Order = 214)]
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 数据权限
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "ModuleDataAuthorize", Order = 214)]
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 功能表单.
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "ModuleForm", Order = 212)]
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 菜单管理
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "Menu", Order = 212)]
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 系统监控
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "Monitor", Order = 215)]
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 打印模板配置
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "PrintDev", Order = 200)]
|
||||
|
||||
@@ -19,6 +19,8 @@ namespace JNPF.Systems.System;
|
||||
/// <summary>
|
||||
/// 打印模板日志
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:引迈信息技术有限公司(https://www.jnpfsoft.com)
|
||||
/// 作 者:JNPF开发平台组
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "PrintLog", Order = 200)]
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace JNPF.Systems.Core.Province;
|
||||
/// <summary>
|
||||
/// 行政区划
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "Area", Order = 206)]
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace JNPF.Systems.System;
|
||||
/// <summary>
|
||||
/// 第三方同步
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "SynThirdInfo", Order = 210)]
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 缓存管理
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "CacheManage", Order = 100)]
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace JNPF.Systems.System;
|
||||
/// <summary>
|
||||
/// 系统配置
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "SysConfig", Order = 211)]
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace JNPF.Systems;
|
||||
/// <summary>
|
||||
/// 系统日志
|
||||
/// 版 本:V3.2
|
||||
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(Tag = "System", Name = "Log", Order = 211)]
|
||||
|
||||
Reference in New Issue
Block a user