diff --git a/Admin.NET/Admin.NET.Core/Service/APIJSON/APIJSONService.cs b/Admin.NET/Admin.NET.Core/Service/APIJSON/APIJSONService.cs
index b3f90f99..1a2dcc7e 100644
--- a/Admin.NET/Admin.NET.Core/Service/APIJSON/APIJSONService.cs
+++ b/Admin.NET/Admin.NET.Core/Service/APIJSON/APIJSONService.cs
@@ -37,6 +37,13 @@ public class APIJSONService : IDynamicApiController, ITransient
[DisplayName("APIJSON统一查询")]
public JObject Query([FromBody] JObject jobject)
{
+ var database = jobject["@database"]?.ToString();
+ if (!string.IsNullOrEmpty(database))
+ {
+ var provider = _db.AsTenant().GetConnectionScope(database); // 指定数据库
+ jobject.Remove("@database");
+ return new SelectTable(_identityService, _tableMapper, provider).Query(jobject);
+ }
return _selectTable.Query(jobject);
}
diff --git a/Admin.NET/Admin.NET.Web.Core/Startup.cs b/Admin.NET/Admin.NET.Web.Core/Startup.cs
index 51060837..4e67ac09 100644
--- a/Admin.NET/Admin.NET.Web.Core/Startup.cs
+++ b/Admin.NET/Admin.NET.Web.Core/Startup.cs
@@ -496,6 +496,7 @@ public class Startup : AppStartup
var warning = "不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!";
groupInfo.Description += $"
👮{warning}";
}
+ //options.ConfigureSwagger(u => { u.OpenApiVersion = Microsoft.OpenApi.OpenApiSpecVersion.OpenApi3_0; });
});
var mqttOptions = App.GetConfig("Mqtt", true);