正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -1165,7 +1165,7 @@ class Index extends Api | @@ -1165,7 +1165,7 @@ class Index extends Api | ||
1165 | foreach ($product_id as $k => $v) { | 1165 | foreach ($product_id as $k => $v) { |
1166 | $lists[$k] = $this->product_arr($v['id']); | 1166 | $lists[$k] = $this->product_arr($v['id']); |
1167 | } | 1167 | } |
1168 | - | 1168 | + $map4['a.stock'] = ['GT', 0]; |
1169 | $list = $this->three_arr($lists); | 1169 | $list = $this->three_arr($lists); |
1170 | $count = \db('product') | 1170 | $count = \db('product') |
1171 | ->alias('a') | 1171 | ->alias('a') |
@@ -1176,7 +1176,7 @@ class Index extends Api | @@ -1176,7 +1176,7 @@ class Index extends Api | ||
1176 | ->where($map1) | 1176 | ->where($map1) |
1177 | ->where($map2) | 1177 | ->where($map2) |
1178 | ->where($map3) | 1178 | ->where($map3) |
1179 | - ->where(['a.stock','GT',0]) | 1179 | + ->where($map4) |
1180 | ->select(); | 1180 | ->select(); |
1181 | foreach ($product_id as $k1 => $v1) { | 1181 | foreach ($product_id as $k1 => $v1) { |
1182 | $list[$k1]['avatar'] = cdnurl($v1['avatar'], true); | 1182 | $list[$k1]['avatar'] = cdnurl($v1['avatar'], true); |
-
请 注册 或 登录 后发表评论