From 287c377d92bf19009aa90a1be400482898822b03 Mon Sep 17 00:00:00 2001 From: 王智 <wz@bronet.cn> Date: Tue, 4 Aug 2020 17:57:31 +0800 Subject: [PATCH] 222 --- application/api/controller/Index.php | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/application/api/controller/Index.php b/application/api/controller/Index.php index af20299..856b2cd 100644 --- a/application/api/controller/Index.php +++ b/application/api/controller/Index.php @@ -435,6 +435,7 @@ class Index extends Api $map2 = []; $map3 = []; $map4 = []; + $map5['a.stock'] = ['GT', 0]; if (!empty($param['isclass']) || $param['isclass'] != null || $param['isclass'] != '') { if (strstr($param['isclass'], '0,')) { $count = strpos($param['isclass'], "0,"); @@ -490,6 +491,7 @@ class Index extends Api ->where($map2) ->where($map3) ->where($map4) + ->where($map5) ->page($param['pages'], $param['rows']) ->select(); if (empty($product_id)) { @@ -512,6 +514,7 @@ class Index extends Api ->where($map2) ->where($map3) ->where($map4) + ->where($map5) ->select(); foreach ($product_id as $k1 => $v1) { $list[$k1]['avatar'] = cdnurl($v1['avatar'], true); -- libgit2 0.24.0