Browse Source

sunguidong

zhangguidong 2 years ago
parent
commit
88bf721417
1 changed files with 2 additions and 1 deletions
  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('请正确填写规格信息');
                 }
             }