作者 王智

222

... ... @@ -1165,7 +1165,7 @@ class Index extends Api
foreach ($product_id as $k => $v) {
$lists[$k] = $this->product_arr($v['id']);
}
$map4['a.stock'] = ['GT', 0];
$list = $this->three_arr($lists);
$count = \db('product')
->alias('a')
... ... @@ -1176,7 +1176,7 @@ class Index extends Api
->where($map1)
->where($map2)
->where($map3)
->where(['a.stock','GT',0])
->where($map4)
->select();
foreach ($product_id as $k1 => $v1) {
$list[$k1]['avatar'] = cdnurl($v1['avatar'], true);
... ...