From 43ffaa4c17382904fb34325a27c4f427a33b4d92 Mon Sep 17 00:00:00 2001 From: devil Date: Tue, 11 Aug 2020 21:34:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=B0=81=E9=9D=A2=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/GoodsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/service/GoodsService.php b/application/service/GoodsService.php index 8bad40a0a..8dc39e20d 100755 --- a/application/service/GoodsService.php +++ b/application/service/GoodsService.php @@ -370,7 +370,7 @@ class GoodsService // 是否已存在相册 if(empty($v['photo']) || empty($v['photo'][0]) || empty($v['photo'][0]['images_old'])) { - $v['images'] = Db::name('GoodsPhoto')->where(['goods_id'=>$v['id'], 'is_show'=>0])->order('sort asc')->value('images'); + $v['images'] = Db::name('GoodsPhoto')->where(['goods_id'=>$v['id'], 'is_show'=>1])->order('sort asc')->value('images'); } else { $v['images'] = $v['photo'][0]['images_old']; }