配置项修改

master
xiaochanghai 1 year ago
parent 612b1e8c01
commit 05a5aceabc
  1. 18
      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 //ConnIdConnId+,ConnIdMain,ConnIdMian1
//! //!
//, //,
"MainDB": "Main", //Enabledtrue "MainDB": "WMTiobon_MSSQL_Main", //Enabledtrue
"DBS": [ "DBS": [
/* /*
DBType DBType
@ -103,10 +103,17 @@
Dm = 5,// Dm = 5,//
Kdbndp = 6,// 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", "ConnId": "Main",
"DBType": 2, "DBType": 2,
"Enabled": true, "Enabled": false,
"Connection": "WMTiobon.db", //sqlite "Connection": "WMTiobon.db", //sqlite
"Slaves": [ "Slaves": [
{ {
@ -118,7 +125,7 @@
{ {
"ConnId": "Main2", "ConnId": "Main2",
"DBType": 2, "DBType": 2,
"Enabled": true, "Enabled": false,
"Connection": "WMTiobon3.db", //sqlite "Connection": "WMTiobon3.db", //sqlite
"Slaves": [ "Slaves": [
{ {
@ -129,10 +136,11 @@
}, },
{ {
"ConnId": "Log", //, "ConnId": "Log", //,
"DBType": 2, "DBType": 1,
"Enabled": true, "Enabled": true,
"HitRate": 50, "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", "ConnId": "WMTiobon_MSSQL_1",

@ -111,7 +111,7 @@
</svg> </svg>
<div id="swagger-ui"></div> <div id="swagger-ui"></div>
<div id="footer" style="text-align: center;margin-bottom: 10px;"> <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> <br><span id="poweredby">Powered by .NET 8.0 on Docker & CentOS 7.6</span>
</div> </div>
@ -168,7 +168,7 @@
setTimeout(() => { 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授权按钮为中文 //修改 token授权按钮为中文
$(".auth-wrapper span").empty(); $(".auth-wrapper span").empty();

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

Loading…
Cancel
Save