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')); }