正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -137,6 +137,9 @@ class Cars extends Api | @@ -137,6 +137,9 @@ class Cars extends Api | ||
137 | $value['goods_number'] = $value['stock']; | 137 | $value['goods_number'] = $value['stock']; |
138 | } | 138 | } |
139 | 139 | ||
140 | + $s_index = array_search($value['style'],Common::salePrice($value['g_style'])); | ||
141 | + $stock = Common::salePrice($value['stock'])[$s_index]; | ||
142 | + $value['stock'] = $stock; | ||
140 | } | 143 | } |
141 | // $total_price = array_sum(array_map(function ($product_row) { | 144 | // $total_price = array_sum(array_map(function ($product_row) { |
142 | // return $product_row['price'] * $product_row['goods_number']; | 145 | // return $product_row['price'] * $product_row['goods_number']; |
-
请 注册 或 登录 后发表评论