From 7ade308091f11f93d1bf8c39c2dc25552ec5c77c Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Fri, 9 Aug 2024 03:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= 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 64e11555..c51e6454 100755 --- a/app/api/logic/IndexLogic.php +++ b/app/api/logic/IndexLogic.php @@ -235,7 +235,7 @@ class IndexLogic extends Logic } else if ($v['mall_type'] == 1) { $ids = explode(',', $v['mall_news_goods_id']); foreach ($ids as $k => &$v2) { - $arr[$k] = MallNewsFile::where('mall_news_shop_id', $v2)->field('src as image, mall_news_goods_id')->select()->toArray(); + $arr[$k] = MallNewsFile::where('mall_news_shop_id', $v2)->field('mall_news_shop_id, src as image')->select()->toArray(); } $v['shop'] = $arr;