正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -1015,7 +1015,7 @@ class Index extends Api | @@ -1015,7 +1015,7 @@ class Index extends Api | ||
1015 | } | 1015 | } |
1016 | } | 1016 | } |
1017 | } | 1017 | } |
1018 | - | 1018 | + |
1019 | $MoList = array( | 1019 | $MoList = array( |
1020 | array( | 1020 | array( |
1021 | 'id' => 1, | 1021 | 'id' => 1, |
@@ -1121,6 +1121,7 @@ class Index extends Api | @@ -1121,6 +1121,7 @@ class Index extends Api | ||
1121 | $map1 = []; | 1121 | $map1 = []; |
1122 | $map2 = []; | 1122 | $map2 = []; |
1123 | $map3 = []; | 1123 | $map3 = []; |
1124 | + $map4['p.stock'] = ['GT', 0]; | ||
1124 | if (!empty($param['isclass']) || $param['isclass'] != null || $param['isclass'] != '') { | 1125 | if (!empty($param['isclass']) || $param['isclass'] != null || $param['isclass'] != '') { |
1125 | $class_id = Db::name('classa')->where(['class' => $param['isclass']])->value('id'); | 1126 | $class_id = Db::name('classa')->where(['class' => $param['isclass']])->value('id'); |
1126 | if (empty($class_id)) { | 1127 | if (empty($class_id)) { |
@@ -1175,6 +1176,7 @@ class Index extends Api | @@ -1175,6 +1176,7 @@ class Index extends Api | ||
1175 | ->where($map1) | 1176 | ->where($map1) |
1176 | ->where($map2) | 1177 | ->where($map2) |
1177 | ->where($map3) | 1178 | ->where($map3) |
1179 | + ->where($map4) | ||
1178 | ->select(); | 1180 | ->select(); |
1179 | foreach ($product_id as $k1 => $v1) { | 1181 | foreach ($product_id as $k1 => $v1) { |
1180 | $list[$k1]['avatar'] = cdnurl($v1['avatar'], true); | 1182 | $list[$k1]['avatar'] = cdnurl($v1['avatar'], true); |
-
请 注册 或 登录 后发表评论