|
|
|
@ -330,6 +330,7 @@ class Goods extends GoodsModel |
|
|
|
|
$jd = new \app\common\service\Jd(); |
|
|
|
|
$res = $jd->getGoodsMainImageAndDetail($goodsInfo->goods_no); |
|
|
|
|
if ($res) { |
|
|
|
|
if ($res['mainImageList']) { |
|
|
|
|
$goods_images = []; |
|
|
|
|
foreach ($res['mainImageList'] as $seq => $image) { |
|
|
|
|
$goods_images[] = [ |
|
|
|
@ -341,12 +342,18 @@ class Goods extends GoodsModel |
|
|
|
|
} |
|
|
|
|
$goodsInfo->goods_images = $goods_images; |
|
|
|
|
$goodsInfo->goods_image = $res['mainImageList'][0]; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($res['infoImageList']) { |
|
|
|
|
$content = ""; |
|
|
|
|
foreach ($res['infoImageList'] as $value) { |
|
|
|
|
$content .= '<p><img src="' . $value . '"/></p>'; |
|
|
|
|
} |
|
|
|
|
$goodsInfo->content = $content; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case 'sn': |
|
|
|
|
// code... |
|
|
|
|