zyh 5 months ago
parent f03594d6fe
commit 1b742cb74d
  1. 8
      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'));
}

Loading…
Cancel
Save