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

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

@@ -321,8 +321,12 @@ class Info
                 return false;
             }
         }
+        $other_array = array('total', 'min');
+        if (Dever::config('base')->buy && Dever::config('base')->buy == 1) {
+            $other_array = array('total');
+        }
         
-        $data = Dever::load('goods/lib/info')->getInfo($info, $attr, array($other, array('total', 'min')));
+        $data = Dever::load('goods/lib/info')->getInfo($info, $attr, array($other, $other_array));
 
         if($data) {