...
|
...
|
@@ -1121,7 +1121,6 @@ class Index extends Api |
|
|
$map1 = [];
|
|
|
$map2 = [];
|
|
|
$map3 = [];
|
|
|
$map4['p.stock'] = ['GT', 0];
|
|
|
if (!empty($param['isclass']) || $param['isclass'] != null || $param['isclass'] != '') {
|
|
|
$class_id = Db::name('classa')->where(['class' => $param['isclass']])->value('id');
|
|
|
if (empty($class_id)) {
|
...
|
...
|
@@ -1166,6 +1165,7 @@ class Index extends Api |
|
|
foreach ($product_id as $k => $v) {
|
|
|
$lists[$k] = $this->product_arr($v['id']);
|
|
|
}
|
|
|
|
|
|
$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($map4)
|
|
|
->where(['p.stock','GT',0])
|
|
|
->select();
|
|
|
foreach ($product_id as $k1 => $v1) {
|
|
|
$list[$k1]['avatar'] = cdnurl($v1['avatar'], true);
|
...
|
...
|
|