zengyyh 4 weeks ago
parent fdbfa64a92
commit 2b0c3a433f
  1. 2
      app/api/controller/Goods.php
  2. 2
      app/store/controller/Goods.php

@ -579,7 +579,7 @@ class Goods extends Controller
$value['jd_short_url'] = $jd_url[$value['goods_no']]['link']; $value['jd_short_url'] = $jd_url[$value['goods_no']]['link'];
if(empty($value['jd_short_url'])){ if(empty($value['jd_short_url'])){
$value['jd_short_url'] = $value['link']; $value['jd_short_url'] = $jd_url[$value['goods_no']]['copy'];
} }
//分类 //分类
if ($cates) { if ($cates) {

@ -778,7 +778,7 @@ class Goods extends Controller
$cates = GoodsCategoryRel::where('goods_id', $value['goods_id'])->select()->toArray(); $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'];
if(empty($value['jd_short_url'])){ if(empty($value['jd_short_url'])){
$value['jd_short_url'] = $value['link']; $value['jd_short_url'] = $jd_url[$value['goods_no']]['copy'];
} }
//分类 //分类
if ($cates) { if ($cates) {

Loading…
Cancel
Save