|
|
|
@ -658,7 +658,7 @@ class Goods extends Controller |
|
|
|
|
{ |
|
|
|
|
$id = $this->request->param('id'); |
|
|
|
|
$detail = ModelTipoff::where('id',$id)->find(); |
|
|
|
|
$goodsList = GoodsModel::whereIn("goods_id",$detail['goods_id'])->field('goods_id,goods_name,goods_price_min,cost_price_min,goods_no')->select(); |
|
|
|
|
$goodsList = GoodsModel::whereIn("goods_id",$detail['goods_id'])->field('goods_id,goods_name,goods_price_min,cost_price_min,goods_no,link')->select(); |
|
|
|
|
$goods_no = []; |
|
|
|
|
|
|
|
|
|
$JdModel = new jd(); |
|
|
|
@ -670,7 +670,7 @@ class Goods extends Controller |
|
|
|
|
|
|
|
|
|
foreach ($goodsList as $key => &$value) { |
|
|
|
|
$cates = GoodsCategoryRel::where('goods_id', $value['goods_id'])->select()->toArray(); |
|
|
|
|
$value['jd_short_url'] = $jd_url[$value['goods_no']]['link'] ?? ""; |
|
|
|
|
$value['jd_short_url'] = $jd_url[$value['goods_no']]['link'] ?? $value['link']; |
|
|
|
|
//分类 |
|
|
|
|
if ($cates) { |
|
|
|
|
//会员价 |
|
|
|
|