作者 jinglong
1 个管道 的构建 通过 耗费 1 秒

修改购物车库存列表

... ... @@ -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']));
... ...