From 2b0c3a433f5ca80ff0d816e23774ad96f55ed76b Mon Sep 17 00:00:00 2001 From: zengyyh Date: Sun, 3 Nov 2024 14:20:54 +0800 Subject: [PATCH] 1 --- app/api/controller/Goods.php | 2 +- app/store/controller/Goods.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {