dever 3 rokov pred
rodič
commit
b047e1194d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/shop/lib/Info.php

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

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