...
|
...
|
@@ -134,7 +134,9 @@ class Cars extends Api |
|
|
//检测库存
|
|
|
$check_stock = Common::checkStock($value['style'],$value['goods_number'],$value['g_style'],$value['stock']);
|
|
|
if(!$check_stock){
|
|
|
$value['goods_number'] = $value['stock'];
|
|
|
$s_index = array_search($value['style'],Common::salePrice($value['g_style']));
|
|
|
$stock = Common::salePrice($value['stock'])[$s_index];
|
|
|
$value['goods_number'] = $stock;
|
|
|
}
|
|
|
|
|
|
$s_index = array_search($value['style'],Common::salePrice($value['g_style']));
|
...
|
...
|
|