Commit dfedf2f6 by 泽锋 李

fix

parent ccf4f9d8
...@@ -266,13 +266,14 @@ namespace AutoTurnOver.DB ...@@ -266,13 +266,14 @@ namespace AutoTurnOver.DB
{ {
break; break;
} }
if (data_detailed_list.Count <= tempIndex)
{
throw new Exception($" 操蛋 {data_detailed_list.Count} - {tempIndex} ");
}
data_detailed_list[tempIndex].quantity++; data_detailed_list[tempIndex].quantity++;
data_detailed_list[tempIndex].share_quantity++; data_detailed_list[tempIndex].share_quantity++;
demandQuantity--; demandQuantity--;
if(data_detailed_list.Count - 1 > tempIndex)
{
throw new Exception($" {data_detailed_list.Count - 1} - {tempIndex} ");
}
if (data_detailed_list.Count-1 <= tempIndex) if (data_detailed_list.Count-1 <= tempIndex)
{ {
tempIndex = 0; tempIndex = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment