作者 王智

222

@@ -1121,7 +1121,6 @@ class Index extends Api @@ -1121,7 +1121,6 @@ class Index extends Api
1121 $map1 = []; 1121 $map1 = [];
1122 $map2 = []; 1122 $map2 = [];
1123 $map3 = []; 1123 $map3 = [];
1124 - $map4['a.stock'] = ['GT', 0];  
1125 if (!empty($param['isclass']) || $param['isclass'] != null || $param['isclass'] != '') { 1124 if (!empty($param['isclass']) || $param['isclass'] != null || $param['isclass'] != '') {
1126 $class_id = Db::name('classa')->where(['class' => $param['isclass']])->value('id'); 1125 $class_id = Db::name('classa')->where(['class' => $param['isclass']])->value('id');
1127 if (empty($class_id)) { 1126 if (empty($class_id)) {
@@ -1146,6 +1145,7 @@ class Index extends Api @@ -1146,6 +1145,7 @@ class Index extends Api
1146 $map3['logo_id'] = array('eq', $logo_id); 1145 $map3['logo_id'] = array('eq', $logo_id);
1147 } 1146 }
1148 } 1147 }
  1148 + $map4['a.id'] = ['eq', 1];
1149 $product_id = \db('product') 1149 $product_id = \db('product')
1150 ->alias('a') 1150 ->alias('a')
1151 ->join('logo b', 'b.id=a.logo_id') 1151 ->join('logo b', 'b.id=a.logo_id')