lqmac 2 months ago
parent 660ae7fe42
commit 5f7794f840
  1. 9
      app/store/controller/Goods.php

@ -34,6 +34,15 @@ use EasyWeChat\Factory;
class Goods extends Controller
{
private static $show_content = "***";
public function getJdShortLink(int $goodsId): Json
{
$model = new GoodsModel;
$goodsInfo = $model->getDetail($goodsId);
$jd = new Jd();
//京东短链
$jd_short_url = $jd->getJdShortLink($goodsInfo->goods_no);
return $this->renderSuccess(compact('jd_short_url'));
}
/**
* 商品列表
* @return Json

Loading…
Cancel
Save