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

View File

@ -143,14 +143,15 @@ namespace Epost.DPS.Controllers
MainControl control = conlist.FirstOrDefault().maincontrol;
bool bo = false;
string Address = dt.Rows[0]["address"].ToString().Trim();
string resstr = string.Empty;
if (item.lightType == "0")
{
bo = control.LED_OFF(ipaddress, Address);
bo = control.LED_OFF(ipaddress, Address,ref resstr);
}
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);
}
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)
{
res.resultCode = "0";
@ -256,7 +258,7 @@ namespace Epost.DPS.Controllers
else
{
res.resultCode = "-1";
res.resultMsg = "失败";
res.resultMsg = resstr;
return res;
}

View File

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