|
|
@ -584,7 +584,7 @@ class Goods extends BaseModel |
|
|
|
protected function setGoodsData($goodsInfo, callable $callback = null) |
|
|
|
protected function setGoodsData($goodsInfo, callable $callback = null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$channel = Channel::withoutGlobalScope()->where('code', $goodsInfo['channel'])->find(); |
|
|
|
$channel = Channel::withoutGlobalScope()->where('code', $goodsInfo['channel'])->find(); |
|
|
|
$goodsInfo['channel_name'] = $channel['name'] ?? ""; |
|
|
|
$goodsInfo['channel_name'] = $channel['alias'] ?? ""; |
|
|
|
|
|
|
|
|
|
|
|
$goodsInfo['goods_images'] = helper::getArrayColumn($goodsInfo['images'], 'file'); |
|
|
|
$goodsInfo['goods_images'] = helper::getArrayColumn($goodsInfo['images'], 'file'); |
|
|
|
// 商品主图 |
|
|
|
// 商品主图 |
|
|
|