商品封面图片优化

feat/task1-c-wallet
devil 2020-08-11 21:34:46 +08:00
parent 5e89503a91
commit 43ffaa4c17
1 changed files with 1 additions and 1 deletions

View File

@ -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'];
}