dev_caoql
杨威 7 months ago
parent 2a48e96cb6
commit fd375ce501

@ -6,6 +6,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="HslCommunication" Version="11.8.2" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" /> <PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
</ItemGroup> </ItemGroup>
@ -15,10 +16,4 @@
<ProjectReference Include="..\SlnMesnac.Config\SlnMesnac.Config.csproj" /> <ProjectReference Include="..\SlnMesnac.Config\SlnMesnac.Config.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Reference Include="HslCommunication">
<HintPath>..\SlnMesnac.Library\HslCommunication.dll</HintPath>
</Reference>
</ItemGroup>
</Project> </Project>

@ -39,6 +39,12 @@ namespace SlnMesnac.WPF
//注册ORM //注册ORM
services.AddSqlSugarSetup(); services.AddSqlSugarSetup();
if (!HslCommunication.Authorization.SetAuthorizationCode("b980977c-3323-4876-b633-c0bef93d75c1"))
{
Console.WriteLine( "active failed" );
Console.ReadLine( );
}
//注册PLC工厂 //注册PLC工厂
services.AddPlcFactorySetup(); services.AddPlcFactorySetup();

@ -8,7 +8,6 @@
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"AppConfig": { "AppConfig": {
"logPath": "E:\\桌面\\SlnMesnac\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows",
"SqlConfig": [ "SqlConfig": [
{ {
"configId": "mes", "configId": "mes",
@ -38,23 +37,7 @@
"plcKey": "cwss", "plcKey": "cwss",
"isFlage": true "isFlage": true
} }
], ]
"RfidConfig": [
{
"configId": 1,
"equipIp": "127.0.0.1",
"equipPort": 6003,
"equipKey": "test1",
"isFlage": true
},
{
"configId": 2,
"equipIp": "127.0.0.1",
"equipPort": 6004,
"equipKey": "test2",
"isFlage": true
}
],
"redisConfig": "175.27.215.92:6379,password=redis@2023"
} }
} }

Loading…
Cancel
Save