This commit is contained in:
jl
2023-04-21 15:47:55 +08:00
parent 8c07d147d5
commit 6d016714ad
4 changed files with 9 additions and 6 deletions

Binary file not shown.

View File

@ -82,7 +82,8 @@
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath> <HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath>
<Private>True</Private> <Private>True</Private>
</Reference> </Reference>
<Reference Include="LightContrl"> <Reference Include="LightContrl, Version=3.0.2.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\DLL\LightContrl.dll</HintPath> <HintPath>..\DLL\LightContrl.dll</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />

View File

@ -143,14 +143,15 @@ namespace Epost.DPS.Controllers
MainControl control = conlist.FirstOrDefault().maincontrol; MainControl control = conlist.FirstOrDefault().maincontrol;
bool bo = false; bool bo = false;
string Address = dt.Rows[0]["address"].ToString().Trim(); string Address = dt.Rows[0]["address"].ToString().Trim();
string resstr = string.Empty;
if (item.lightType == "0") if (item.lightType == "0")
{ {
bo = control.LED_OFF(ipaddress, Address); bo = control.LED_OFF(ipaddress, Address,ref resstr);
} }
else else
{ {
bo = control.LED_ON(ipaddress, Address, "3", "0" , item.lightColor.Trim()); bo = control.LED_ON(ipaddress, Address, ref resstr, "3", "0" , item.lightColor.Trim());
} }
@ -247,7 +248,8 @@ namespace Epost.DPS.Controllers
list.Add(show); list.Add(show);
} }
bool bo = control.LED_By_Paragraph(ipaddress, address, list); string resstr = string.Empty;
bool bo = control.LED_By_Paragraph(ipaddress, address, list,ref resstr);
if (bo) if (bo)
{ {
res.resultCode = "0"; res.resultCode = "0";
@ -256,7 +258,7 @@ namespace Epost.DPS.Controllers
else else
{ {
res.resultCode = "-1"; res.resultCode = "-1";
res.resultMsg = "失败"; res.resultMsg = resstr;
return res; return res;
} }

View File

@ -11,7 +11,7 @@
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> <WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
<WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth> <WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth>
<NameOfLastUsedPublishProfile>E:\WORK\代码管理\T系列\播种\Epost.TestToolsWeb\Properties\PublishProfiles\Toolsweb.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>E:\WORK\代码管理\T系列\播种\Epost.TestToolsWeb\Properties\PublishProfiles\Toolsweb.pubxml</NameOfLastUsedPublishProfile>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress /> <Use64BitIISExpress />
<IISExpressSSLPort /> <IISExpressSSLPort />
<IISExpressAnonymousAuthentication /> <IISExpressAnonymousAuthentication />