2024619123 2 years ago
parent
commit
881b839384
1 changed files with 0 additions and 4 deletions
  1. 0 4
      app/data/controller/shop/Goods.php

+ 0 - 4
app/data/controller/shop/Goods.php

@@ -176,14 +176,10 @@ class Goods extends Controller
             $data['stock_total']=0;
             [$count, $items] = [0, array_column(json_decode($data['data_items'], true), 0)];
             foreach ($items as $item) if ($item['status'] > 0) {
-
                 if ($data['price_market'] === 0 || $data['price_market'] > $item['market']) $data['price_market'] = $item['market'];
                 if ($data['price_selling'] === 0 || $data['price_selling'] > $item['selling']) $data['price_selling'] = $item['selling'];
                 $data['stock_total']+=$item['stock'];
-
                 $count++;
-
-
             }
             if (empty($count)) $this->error('无效的的商品价格信息!');
             $data['marks'] = arr2str($data['marks'] ?? []);