最大购买数量

parent 458bcad4
Showing with 1 additions and 1 deletions
......@@ -93,7 +93,7 @@ function getMaxBuyStock($stock,$multiple,$ladder_price){
if ($ladder_price){ //梯度价库存最大购买数量
$max_pur_num = @$ladder_price[count($ladder_price)-1]["purchases"];
$max_buy_stock2 = intval($max_pur_num/$multiple)*$multiple; //库存最大购买数量
$max_buy_stock = $max_buy_stock1 > $max_buy_stock2 ? $max_buy_stock2:$max_buy_stock1;
$max_buy_stock = $max_buy_stock1 > $max_buy_stock2 ? $max_buy_stock1:$max_buy_stock2;
}else{
$max_buy_stock = $max_buy_stock1;
}
......
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 sign in to comment