bug处理

This commit is contained in:
2024-04-23 10:16:16 +08:00
parent c8e2f1eafd
commit 579f2d3a39
197 changed files with 2509 additions and 1363 deletions

View File

@@ -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)
{

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -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)]