dever 3 years ago
parent
commit
fc79ad13c5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/shop/lib/Info.php

+ 4 - 1
app/shop/lib/Info.php

@@ -238,7 +238,10 @@ class Info
     {
         $where['shop_id'] = $shop_id;
         $where['goods_id'] = isset($info['goods_id']) ? $info['goods_id'] : $info;
-        $where['sku_id'] = $sku_id ? $sku_id : -1;
+        if ($sku_id) {
+            $where['sku_id'] = $sku_id;
+        }
+        
         $other = Dever::db('shop/goods_sku')->getData($where);
         if (!$other) {
             return false;