diff --git a/Src/Dlhis.Basic/Device/Services/Implements/DeviceService.cs b/Src/Dlhis.Basic/Device/Services/Implements/DeviceService.cs
index 176ed5b7..c75a2f15 100644
--- a/Src/Dlhis.Basic/Device/Services/Implements/DeviceService.cs
+++ b/Src/Dlhis.Basic/Device/Services/Implements/DeviceService.cs
@@ -139,6 +139,8 @@ public class DeviceService : IDeviceService
///
public async Task> BulkUploadsAsync(ImportListRequest request)
{
+ true.ThrowIfTrue("设备导入功能暂时停用.");
+
var errs = new List();
var lst = request.Imports;
var places = await _dbContext.Queryable().ToListAsync();
diff --git a/Src/Dlhis.Basic/Organization/Filters/IgnoreDataCaseAttribute.cs b/Src/Dlhis.Basic/Organization/Filters/IgnoreDataCaseAttribute.cs
index a86442cf..620e0843 100644
--- a/Src/Dlhis.Basic/Organization/Filters/IgnoreDataCaseAttribute.cs
+++ b/Src/Dlhis.Basic/Organization/Filters/IgnoreDataCaseAttribute.cs
@@ -7,6 +7,9 @@ using Newtonsoft.Json;
namespace Dlhis.Basic.Organization.Filters;
+///
+/// 忽略响应.Data的自动camelCase
+///
[AttributeUsage(AttributeTargets.Method)]
public class IgnoreDataCaseAttribute : Attribute, IAsyncResultFilter
{
@@ -29,6 +32,7 @@ public class IgnoreDataCaseAttribute : Attribute, IAsyncResultFilter
var json = JsonConvert.SerializeObject(body);
var bytes = Encoding.UTF8.GetBytes(json);
+ context.HttpContext.Response.StatusCode = 200;
context.HttpContext.Response.ContentType = "application/json";
context.HttpContext.Response.ContentLength = bytes.Length;
await context.HttpContext.Response.BodyWriter.WriteAsync(bytes);
@@ -36,6 +40,7 @@ public class IgnoreDataCaseAttribute : Attribute, IAsyncResultFilter
}
}
- await next();
+ //eg:过滤器直接响应结果,此处进行短路
+ //await next();
}
}