From 981844a25a0eb4aa88ebeafba394d31a980587a1 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Fri, 9 Aug 2024 04:12:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/IndexLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/logic/IndexLogic.php b/app/api/logic/IndexLogic.php index eadc6987..586884c8 100755 --- a/app/api/logic/IndexLogic.php +++ b/app/api/logic/IndexLogic.php @@ -237,7 +237,7 @@ class IndexLogic extends Logic foreach ($ids as $k => &$v2) { $res = MallNewsFile::where('mall_news_shop_id', $v2)->field('mall_news_shop_id, src')->select()->toArray(); foreach ($res as &$v3) { - $v3['src'] = UrlServer::getFileUrl('uploads/images/' . $v3['src']); + $v3['image'] = UrlServer::getFileUrl('uploads/images/' . $v3['src']); } $arr[$k] = $res; }