提交 43ffaa4c 编写于 作者: D devil

商品封面图片优化

上级 5e89503a
......@@ -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'];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册