瀏覽代碼

sunguidong

zhangguidong 2 年之前
父節點
當前提交
88bf721417
共有 1 個文件被更改,包括 2 次插入1 次删除
  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('请正确填写规格信息');
                 }
             }