dever 3 年之前
父節點
當前提交
b047e1194d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/shop/lib/Info.php

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

@@ -36,12 +36,12 @@ class Info
     {
         if ($shop) {
             $table = 'shop/goods';
+            $where['shop_id'] = $shop['id'];
         } else {
             $table = 'goods/info';
         }
 
         $method = 'getTop';
-        $where['shop_id'] = $shop['id'];
         if ($type == 1) {
             $where['hot'] = 1;
         } elseif ($type == 2) {