正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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') |
-
请 注册 或 登录 后发表评论