zengyyh 3 months ago
parent e18dba0d29
commit 7568e338a9
  1. 2
      app/api/controller/Goods.php
  2. 4
      app/store/controller/Goods.php

@ -576,7 +576,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) {
//会员价

@ -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) {
//会员价

Loading…
Cancel
Save