作者 王智

222

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