Commit 2d8c2cbc by 泽锋 李

fix

parent dd13f8ff
......@@ -269,8 +269,11 @@ namespace AutoTurnOver.DB
data_detailed_list[tempIndex].quantity++;
data_detailed_list[tempIndex].share_quantity++;
demandQuantity--;
if (data_detailed_list.Count-1 == tempIndex)
if(data_detailed_list.Count - 1 >= tempIndex)
{
throw new Exception($" {data_detailed_list.Count - 1} - {tempIndex} ");
}
if (data_detailed_list.Count-1 <= tempIndex)
{
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