|
|
|
@ -765,6 +765,7 @@ class Goods extends Controller |
|
|
|
|
{ |
|
|
|
|
$id = $this->request->param('id'); |
|
|
|
|
$detail = ModelTipoff::where('id', $id)->find(); |
|
|
|
|
$storeId = $this->storeId; |
|
|
|
|
$goodsList = GoodsModel::whereIn("goods_id", $detail['goods_id'])->field('goods_id,store_id,goods_name,goods_price_min,cost_price_min,goods_no,link')->select(); |
|
|
|
|
$goods_no = []; |
|
|
|
|
|
|
|
|
@ -804,7 +805,7 @@ class Goods extends Controller |
|
|
|
|
//分类 |
|
|
|
|
if ($cates) { |
|
|
|
|
//会员价 |
|
|
|
|
$value['membership_price'] = \app\common\model\PriceSet::membershipPrice($value['goods_price_min'], $value['cost_price_min'], array_column($cates, 'category_id'),$value['store_id']); |
|
|
|
|
$value['membership_price'] = \app\common\model\PriceSet::membershipPrice($value['goods_price_min'], $value['cost_price_min'], array_column($cates, 'category_id'),$storeId); |
|
|
|
|
} |
|
|
|
|
unset($goodsList[$key]['cost_price_min']); |
|
|
|
|
} |
|
|
|
|