作者 王智

222

@@ -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(['p.stock','GT',0]) 1179 + ->where(['a.stock','GT',0])
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);