Commit c752d3a0 张东亮

13寸测高自减问题

1 个父辈 e2d628ff
...@@ -583,10 +583,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -583,10 +583,7 @@ namespace OnlineStore.DeviceLibrary
} }
float height = (float)(1F * Math.Abs(EndMovePosition - StartMovePosition) / AxisChangeValue);//Math.Ceiling float height = (float)(1F * Math.Abs(EndMovePosition - StartMovePosition) / AxisChangeValue);//Math.Ceiling
if (width >= 13) {
height = height - 2;
LogUtil.info($"检测为13寸高度-2={height}");
}
string buchongStr = ""; string buchongStr = "";
if (isLast) if (isLast)
...@@ -611,6 +608,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -611,6 +608,12 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
if (width >= 13)
{
height = height - 2;
LogUtil.info($"检测为13寸高度-2={height}");
}
List<int> heightList = StoreManager.GetTrayList(); List<int> heightList = StoreManager.GetTrayList();
heightList = (from m in heightList orderby m descending select m).ToList<int>(); heightList = (from m in heightList orderby m descending select m).ToList<int>();
float minCha = height; float minCha = height;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!