...
|
...
|
@@ -1121,6 +1121,7 @@ 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)) {
|
...
|
...
|
@@ -1175,6 +1176,7 @@ class Index extends Api |
|
|
->where($map1)
|
|
|
->where($map2)
|
|
|
->where($map3)
|
|
|
->where($map4)
|
|
|
->select();
|
|
|
foreach ($product_id as $k1 => $v1) {
|
|
|
$list[$k1]['avatar'] = cdnurl($v1['avatar'], true);
|
...
|
...
|
|