zhangguidong 2 anni fa
parent
commit
88bf721417
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app/shop/controller/Goods.php

+ 2 - 1
app/shop/controller/Goods.php

@@ -199,7 +199,8 @@ class Goods extends BaseShop
             }
             $sku =  json_decode($goods_sku_data, true);
             foreach ($sku as $item){
-                if(empty($item['price'])) {
+
+                if(empty($item['market_price'])) {
                     return $this->error('请正确填写规格信息');
                 }
             }