diff --git a/app/api/controller/Goods.php b/app/api/controller/Goods.php index 023ed1da..1f9f8ed4 100644 --- a/app/api/controller/Goods.php +++ b/app/api/controller/Goods.php @@ -579,7 +579,7 @@ class Goods extends Controller $value['jd_short_url'] = $jd_url[$value['goods_no']]['link']; if(empty($value['jd_short_url'])){ - $value['jd_short_url'] = $value['link']; + $value['jd_short_url'] = $jd_url[$value['goods_no']]['copy']; } //分类 if ($cates) { diff --git a/app/store/controller/Goods.php b/app/store/controller/Goods.php index d25eccce..e63b61af 100644 --- a/app/store/controller/Goods.php +++ b/app/store/controller/Goods.php @@ -778,7 +778,7 @@ class Goods extends Controller $cates = GoodsCategoryRel::where('goods_id', $value['goods_id'])->select()->toArray(); $value['jd_short_url'] = $jd_url[$value['goods_no']]['link']; if(empty($value['jd_short_url'])){ - $value['jd_short_url'] = $value['link']; + $value['jd_short_url'] = $jd_url[$value['goods_no']]['copy']; } //分类 if ($cates) {