数据库配置

This commit is contained in:
quowingwang 2026-01-21 15:09:02 +08:00
parent 9e8bd463dc
commit bab87e00f3
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace RIZO.Admin.WebApi.PLC.Service
// 可配置参数建议放到配置文件中通过IOptions注入
private readonly int _parallelDegree = 10; // 并行度20+PLC建议8-12
private readonly int _pollingIntervalSeconds = 5; // 轮询间隔
private readonly int _connectTimeoutSeconds = 2; // 单个PLC连接超时时间
private readonly int _connectTimeoutSeconds = 1; // 单个PLC连接超时时间
private readonly int _stateCacheExpireSeconds = 10; // 连接状态缓存有效期
private PlantWorkstationService plantWorkstationService = new PlantWorkstationService();

View File

@ -6,7 +6,7 @@
// "Conn": "Server=43.142.238.124,1433;Database=valeo_lmes_2;User Id=sa;Password=MSSQLP0ss_MBTc7D;Encrypt=True;TrustServerCertificate=True;",
//"Conn": "Server=127.0.0.1,1433;Database=valeo_lmes;User Id=root;Password=123456;Encrypt=True;TrustServerCertificate=True;",
//"Conn": "Server=192.168.1.48,1433;Database=valeo_lmes;User Id=sa;Password=RIZOtech123;Encrypt=True;TrustServerCertificate=True;",
"Conn": "Server=47.101.40.214,1433;Database=valeo_lmes;User Id=sa;Password=RIZOtech123;Encrypt=True;TrustServerCertificate=True;",
"Conn": "Server=47.101.40.214,1433;Database=valeo_lmes;User Id=root;Password=RIZOtech123;Encrypt=True;TrustServerCertificate=True;",
//"Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog=valeo_lmes;Port=3306;",
"DbType": 1, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", //
@ -22,7 +22,7 @@
//"Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog={dbName};Port=3306;",
//"Conn": "Server=127.0.0.1,1433;Database={dbName};User Id=root;Password=123456;Encrypt=True;TrustServerCertificate=True;",
//"Conn": "Server=192.168.1.48,1433;Database={dbName};User Id=sa;Password=RIZOtech123;Encrypt=True;TrustServerCertificate=True;",
"Conn": "Server=47.101.40.214,1433;Database={dbName};User Id=sa;Password=RIZOtech123;Encrypt=True;TrustServerCertificate=True;",
"Conn": "Server=47.101.40.214,1433;Database={dbName};User Id=root;Password=RIZOtech123;Encrypt=True;TrustServerCertificate=True;",
"IsAutoCloseConnection": true,
"DbName": "valeo_lmes", //,Oracle
"DbType": 1