报警灯
This commit is contained in:
@ -124,7 +124,8 @@ namespace WCS.WebApi.Controllers
|
||||
if (row == 1)
|
||||
{
|
||||
//之前已经占用的id
|
||||
var id = (shelf.Rowcounts - 1) * (shelf.Columncounts + 7);
|
||||
var id = (shelf.Rowcounts - 1) * (shelf.Columncounts + 6);
|
||||
|
||||
//奇数行 灯Id是最后一个灯
|
||||
for (int i = shelf.Columncounts; i > 0; i--)
|
||||
{
|
||||
@ -177,11 +178,11 @@ namespace WCS.WebApi.Controllers
|
||||
else
|
||||
{
|
||||
//之前已经占用的id
|
||||
var id = (shelf.Rowcounts - 1) * (shelf.Columncounts + 7);
|
||||
var id = (shelf.Rowcounts - 1) * (shelf.Columncounts + 6);
|
||||
shelf.LightId = ++id;
|
||||
|
||||
//灯占7个ID
|
||||
id = id + 6;
|
||||
//灯占6个ID
|
||||
id = id + 5;
|
||||
//奇数行 灯Id是最后一个灯
|
||||
for (int i = 1; i <= shelf.Columncounts; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user