lqmac 3 months ago
parent a96c80364f
commit badbfb7511
  1. 2
      app/api/controller/Goods.php
  2. 2
      app/api/controller/sharp/Goods.php

@ -96,7 +96,7 @@ class Goods extends Controller
$jd = new Jd();
$jd_short_url = $jd->getJdShortLink($goodsInfo['goods_no']);
//获取商品短链
$goodsInfo['jd_short_url'] = $jd_short_url;
$goodsInfo['jd_short_url'] = $jd_short_url[0]['link'] ?? "";
return $this->renderSuccess(['detail' => $goodsInfo]);
}

@ -69,7 +69,7 @@ class Goods extends Controller
//京东短链
$jd = new Jd();
$jd_short_url = $jd->getJdShortLink($data['goods']['goods_no']);
$data['goods']['jd_short_url'] = $jd_short_url;
$data['goods']['jd_short_url'] = $jd_short_url[0]['link'] ?? "";
return $this->renderSuccess($data);
}

Loading…
Cancel
Save