正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -1117,6 +1117,7 @@ class Index extends Api | @@ -1117,6 +1117,7 @@ class Index extends Api | ||
1117 | */ | 1117 | */ |
1118 | public function LeftProductChoose() | 1118 | public function LeftProductChoose() |
1119 | { | 1119 | { |
1120 | + $map4['a.stock'] = ['GT', 0]; | ||
1120 | $param = $this->request->param(); | 1121 | $param = $this->request->param(); |
1121 | $map1 = []; | 1122 | $map1 = []; |
1122 | $map2 = []; | 1123 | $map2 = []; |
@@ -1145,7 +1146,6 @@ class Index extends Api | @@ -1145,7 +1146,6 @@ class Index extends Api | ||
1145 | $map3['logo_id'] = array('eq', $logo_id); | 1146 | $map3['logo_id'] = array('eq', $logo_id); |
1146 | } | 1147 | } |
1147 | } | 1148 | } |
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') |
@@ -1161,7 +1161,7 @@ class Index extends Api | @@ -1161,7 +1161,7 @@ class Index extends Api | ||
1161 | if (empty($product_id)) { | 1161 | if (empty($product_id)) { |
1162 | $return['count'] = []; | 1162 | $return['count'] = []; |
1163 | $return['list'] = []; | 1163 | $return['list'] = []; |
1164 | - $this->success('成功1', $return); | 1164 | + $this->success('成功', $return); |
1165 | die; | 1165 | die; |
1166 | } | 1166 | } |
1167 | foreach ($product_id as $k => $v) { | 1167 | foreach ($product_id as $k => $v) { |
-
请 注册 或 登录 后发表评论