Commit 0a48e81d 张东亮

13寸尺寸归类

1 个父辈 255db908
...@@ -646,7 +646,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -646,7 +646,7 @@ namespace OnlineStore.DeviceLibrary
var height24MaxActualHeight = ConfigHelper.Config.Get($"7寸高度归类为24mm的最大实际高度", 24); var height24MaxActualHeight = ConfigHelper.Config.Get($"7寸高度归类为24mm的最大实际高度", 24);
if (LastTotalHeight >= height24MinActualHeight && LastTotalHeight <= height24MaxActualHeight) if (LastTotalHeight >= height24MinActualHeight && LastTotalHeight <= height24MaxActualHeight)
{ {
LastTotalHeight = 24; LastHeight = 24;
LogUtil.info($"实际高度在{height24MinActualHeight}与{height24MaxActualHeight},实际高度归类为24"); LogUtil.info($"实际高度在{height24MinActualHeight}与{height24MaxActualHeight},实际高度归类为24");
} }
...@@ -655,27 +655,30 @@ namespace OnlineStore.DeviceLibrary ...@@ -655,27 +655,30 @@ namespace OnlineStore.DeviceLibrary
if (LastTotalHeight >= height20MinActualHeight && LastTotalHeight <= height20MaxActualHeight) if (LastTotalHeight >= height20MinActualHeight && LastTotalHeight <= height20MaxActualHeight)
{ {
LastHeight = 20; LastHeight = 20;
LastTotalHeight = 20;
LogUtil.info($"实际高度在{height20MinActualHeight}与{height20MaxActualHeight},实际高度归类为20,改为高度归类为20"); LogUtil.info($"实际高度在{height20MinActualHeight}与{height20MaxActualHeight},实际高度归类为20,改为高度归类为20");
} }
} }
else if (width > 7) else if (width > 7)
{ {
var height28MinActualHeight = ConfigHelper.Config.Get($"13寸高度归类为28mm的最小实际高度", 28); var height28MinActualHeight = ConfigHelper.Config.Get($"13寸高度归类为28mm的最小实际高度", 22);
var height28MaxActualHeight = ConfigHelper.Config.Get($"13寸高度归类为28mm的最大实际高度", 32); var height28MaxActualHeight = ConfigHelper.Config.Get($"13寸高度归类为28mm的最大实际高度", 28);
if (LastTotalHeight >= height28MinActualHeight && LastTotalHeight <= height28MaxActualHeight) if (LastTotalHeight >= height28MinActualHeight && LastTotalHeight <= height28MaxActualHeight)
{ {
LastHeight = 32; LastHeight = 28;
LastTotalHeight = 32;
LogUtil.info($"实际高度在{height28MinActualHeight}与{height28MaxActualHeight},实际高度归类为28"); LogUtil.info($"实际高度在{height28MinActualHeight}与{height28MaxActualHeight},实际高度归类为28");
} }
var height20MinActualHeight = ConfigHelper.Config.Get($"13寸高度归类为20mm的最小实际高度", 15); var height20MinActualHeight = ConfigHelper.Config.Get($"13寸高度归类为20mm的最小实际高度", 16);
var height20MaxActualHeight = ConfigHelper.Config.Get($"13寸高度归类为20mm的最大实际高度", 20); var height20MaxActualHeight = ConfigHelper.Config.Get($"13寸高度归类为20mm的最大实际高度", 22);
if (LastTotalHeight >= height20MinActualHeight && LastTotalHeight <= height20MaxActualHeight) if (LastTotalHeight >= height20MinActualHeight && LastTotalHeight <= height20MaxActualHeight)
{ {
LastHeight = 20; LastHeight = 20;
LastTotalHeight = 20; LogUtil.info($"实际高度在{height20MinActualHeight}与{height20MaxActualHeight},实际高度归类为20");
LogUtil.info($"实际高度在{height20MinActualHeight}与{height20MaxActualHeight},实际高度归类为20,改为高度归类为20"); }
var height12MaxActualHeight = ConfigHelper.Config.Get($"13寸高度归类为12mm的最大实际高度", 16);
if (LastTotalHeight < height12MaxActualHeight)
{
LastHeight = 12;
LogUtil.info($"实际高度小于{height12MaxActualHeight},实际高度归类为12");
} }
} }
string code = CodeManager.ProcessCode(LastCodeList); string code = CodeManager.ProcessCode(LastCodeList);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!