From 1b742cb74d42cd39ebe836b819d02e765afaaeac Mon Sep 17 00:00:00 2001 From: zyh Date: Wed, 23 Oct 2024 13:44:25 +0800 Subject: [PATCH] 12 --- app/store/controller/Goods.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/store/controller/Goods.php b/app/store/controller/Goods.php index f4e248fa..39cad0d0 100644 --- a/app/store/controller/Goods.php +++ b/app/store/controller/Goods.php @@ -683,8 +683,14 @@ class Goods extends Controller if(empty($detail)){ return $this->renderError('暂无线报商品'); } + $model = new GoodsModel(); + $List = GoodsModel::whereIn("goods_id",$detail['goods_id'])->select(); + $goodsList = null; + foreach ($List as $key => $value) { - $goodsList = GoodsModel::whereIn("goods_id",$detail['goods_id'])->select(); + $goodsList[] = $model->getDetail( $value["goods_id"]); + + } return $this->renderSuccess(compact('goodsList')); }