配置项修改

master
xiaochanghai 1 year ago
parent 612b1e8c01
commit 05a5aceabc
  1. 22
      Tiobon.Core.Api/appsettings.json
  2. 4
      Tiobon.Core.Api/index.html
  3. 4
      Tiobon.Core.Extensions/ServiceExtensions/SwaggerSetup.cs

@ -91,7 +91,7 @@
//ConnIdConnId+,ConnIdMain,ConnIdMian1
//!
//,
"MainDB": "Main", //Enabledtrue
"MainDB": "WMTiobon_MSSQL_Main", //Enabledtrue
"DBS": [
/*
DBType
@ -103,14 +103,21 @@
Dm = 5,//
Kdbndp = 6,//
*/
{
"ConnId": "WMTiobon_MSSQL_Main",
"DBType": 1,
"Enabled": true,
"Connection": "Data Source=116.204.98.209;User ID=Tiobon;Password=&($!4UGUyU#$2sp9O;Database=Tiobon;Encrypt=True;TrustServerCertificate=True;",
"ProviderName": "System.Data.SqlClient"
},
{
"ConnId": "Main",
"DBType": 2,
"Enabled": true,
"Enabled": false,
"Connection": "WMTiobon.db", //sqlite
"Slaves": [
{
"HitRate": 0,// 0使
"HitRate": 0, // 0使
"Connection": "WMTiobon2.db"
}
]
@ -118,21 +125,22 @@
{
"ConnId": "Main2",
"DBType": 2,
"Enabled": true,
"Enabled": false,
"Connection": "WMTiobon3.db", //sqlite
"Slaves": [
{
"HitRate": 0,// 0使
"HitRate": 0, // 0使
"Connection": "WMTiobon4.db"
}
]
},
{
"ConnId": "Log", //,
"DBType": 2,
"DBType": 1,
"Enabled": true,
"HitRate": 50,
"Connection": "WMTiobonLog.db" //sqlite
"Connection": "Data Source=116.204.98.209;User ID=Tiobon;Password=&($!4UGUyU#$2sp9O;Database=Tiobon;Encrypt=True;TrustServerCertificate=True;",
"ProviderName": "System.Data.SqlClient"
},
{
"ConnId": "WMTiobon_MSSQL_1",

@ -111,7 +111,7 @@
</svg>
<div id="swagger-ui"></div>
<div id="footer" style="text-align: center;margin-bottom: 10px;">
Copyright © 2018-2023 BCVP开发者社区
Copyright © 2018-2023 苏州工业园区乔邦科技有限公司
<br><span id="poweredby">Powered by .NET 8.0 on Docker & CentOS 7.6</span>
</div>
@ -168,7 +168,7 @@
setTimeout(() => {
//二维码
$('.info').append("<div class='qqgroup'><img src='https://img.neters.club/doc/wechatgongzhonghao.png' alt='QQ二维码' style='width: 150px;margin-bottom: 15px;'><div style=\"color: #4990e2;\"><a href=\"../allservices\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"link\">· 查看所有依赖注册的服务</a><br><a href=\"../ui\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"link\">· 查看前端配套页面</a></div></div><div style='clear: both;'></div>");
//$('.info').append("<div class='qqgroup'><img src='https://img.neters.club/doc/wechatgongzhonghao.png' alt='QQ二维码' style='width: 150px;margin-bottom: 15px;'><div style=\"color: #4990e2;\"><a href=\"../allservices\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"link\">· 查看所有依赖注册的服务</a><br><a href=\"../ui\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"link\">· 查看前端配套页面</a></div></div><div style='clear: both;'></div>");
//修改 token授权按钮为中文
$(".auth-wrapper span").empty();

@ -35,8 +35,8 @@ namespace Tiobon.Core.Extensions
Version = version,
Title = $"{ApiName} 接口文档——{RuntimeInformation.FrameworkDescription}",
Description = $"{ApiName} HTTP API " + version,
Contact = new OpenApiContact { Name = ApiName, Email = "Tiobon.Core@xxx.com", Url = new Uri("https://neters.club") },
License = new OpenApiLicense { Name = ApiName + " 官方文档", Url = new Uri("http://apk.neters.club/.doc/") }
//Contact = new OpenApiContact { Name = ApiName, Email = "Tiobon.Core@xxx.com", Url = new Uri("https://neters.club") },
//License = new OpenApiLicense { Name = ApiName + " 官方文档", Url = new Uri("http://apk.neters.club/.doc/") }
});
c.OrderActionsBy(o => o.RelativePath);
});

Loading…
Cancel
Save