change - 配置文件修改

master
wenjy 10 months ago
parent 182447b1d0
commit 488899a9e4

@ -74,7 +74,9 @@ public class IngCheckController
} }
else else
{ {
result.SetSuccess(JsonSerializer.Serialize(info)); string matStr = JsonSerializer.Serialize(info);
result.SetSuccess(matStr);
_logger.LogInformation($"获取物料信息成功:{matStr},时间:{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
} }
} while (false); } while (false);
} }

@ -2,7 +2,47 @@
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Information", "Default": "Information",
"Microsoft.AspNetCore": "Warning" "Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
} }
},
"AllowedHosts": "*",
"AppConfig": {
"logPath": "E:/桌面/杜肯密炼MES项目/程序设计/Durk.SlnMesnac/SlnMesnac/bin/Debug/net6.0",
"mcsOpenAddr": "D100",
"cwssOpenAddr": "DB122",
"SqlConfig": [
{
"configId": "mcs",
"dbType": 1, //MySql-0;SqlServer-1;Sqlite-2;Oracle-3
"connStr": "server=58.63.214.27,23313;uid=dkmes;pwd=Duken123;database=mesnac_MCS_ShareDB"
},
{
"configId": "wms",
"dbType": 1,
"connStr": "server=58.63.214.27,23314;uid=dk_mes;pwd=dk_mes;database=gzdk_interaction_mes"
},
{
"configId": "mes",
"dbType": 3,
"connStr": "Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma"
}
],
"PlcConfig": [
{
"configId": 1,
"plcType": "MelsecBinaryPlc",
"plcIp": "127.0.0.1", //192.168.1.71
"plcPort": 6000,
"plcKey": "mcs"
},
{
"configId": 2,
"plcType": "MelsecBinaryPlc",
"plcIp": "127.0.0.1",
"plcPort": 6000,
"plcKey": "cwss"
}
]
} }
} }

@ -8,41 +8,28 @@
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"AppConfig": { "AppConfig": {
//"logPath": "/Users/wenxiansheng/Desktop/日常代码/杜肯新材料程序设计/Durk.SlnMesnac/SlnMesnac/bin/Debug/net6.0",
"logPath": "E:/桌面/杜肯密炼MES项目/程序设计/Durk.SlnMesnac/SlnMesnac/bin/Debug/net6.0", "logPath": "E:/桌面/杜肯密炼MES项目/程序设计/Durk.SlnMesnac/SlnMesnac/bin/Debug/net6.0",
"mcsOpenAddr": "D100", "mcsOpenAddr": "D75367",
"cwssOpenAddr": "DB122", "cwssOpenAddr": "DB122",
"SqlConfig": [ "SqlConfig": [
{ {
"configId": "mcs", "configId": "mcs",
"dbType": 1, //MySql-0;SqlServer-1;Sqlite-2;Oracle-3 "dbType": 1,
"connStr": "server=58.63.214.27,23313;uid=dkmes;pwd=Duken123;database=mesnac_MCS_ShareDB" "connStr": "server=10.168.205.73,1433;uid=dkmes;pwd=Duken123;database=mesnac_MCS_ShareDB"
}, },
{ {
"configId": "wms", "configId": "wms",
"dbType": 1, "dbType": 1,
"connStr": "server=58.63.214.27,23314;uid=dk_mes;pwd=dk_mes;database=gzdk_interaction_mes" "connStr": "server=10.168.205.31,1433;uid=dk_mes;pwd=dk_mes;database=gzdk_interaction_mes"
},
{
"configId": "mes",
"dbType": 3,
"connStr": "Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma"
} }
], ],
"PlcConfig": [ "PlcConfig": [
{ {
"configId": 1, "configId": 1,
"plcType": "MelsecBinaryPlc", "plcType": "MelsecBinaryPlc",
"plcIp": "127.0.0.1", //192.168.1.71 "plcIp": "192.168.1.71",
"plcPort": 6000, "plcPort": 6000,
"plcKey": "mcs" "plcKey": "mcs"
},
{
"configId": 2,
"plcType": "MelsecBinaryPlc",
"plcIp": "127.0.0.1",
"plcPort": 6000,
"plcKey": "cwss"
} }
] ]
} }

Loading…
Cancel
Save