From 1e7725c722e63249dd549b046b8d71aec301dd25 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Mon, 9 Dec 2019 11:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=9B=A0=E5=9B=BE=E7=89=87=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/modules/goods/models/searchs/GoodsSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/modules/goods/models/searchs/GoodsSearch.php b/backend/modules/goods/models/searchs/GoodsSearch.php index 6a8b04f..f70194c 100755 --- a/backend/modules/goods/models/searchs/GoodsSearch.php +++ b/backend/modules/goods/models/searchs/GoodsSearch.php @@ -63,7 +63,7 @@ class GoodsSearch extends Goods 'width'=>'10%', 'format' => 'raw', 'value' => function ($model) { - return $model->image ? + return $model->imageFile ? Html::img(['/'.$model->imageFile->path], ['style' => 'width:80px']) : '
未设置
';