Commit b2661ccc by 杨树贤

修复

parent 952f81ee
Showing with 5 additions and 2 deletions
......@@ -69,7 +69,10 @@ class CaseService extends BaseService
unset($item['writer']);
$item['tags'] = array_column($item['article_tag'], 'tag');
unset($item['article_tag']);
$goodsInfo = $this->getGoodsInfo($item['goods_id']);
$goodsInfo = [];
if ($item['goods_id']) {
$goodsInfo = $this->getGoodsInfo($item['goods_id']);
}
if ($goodsInfo) {
$item['goods_info'] = [
'class_id1' => $goodsInfo['class_id1'],
......@@ -83,7 +86,7 @@ class CaseService extends BaseService
'ladder_price'=>$goodsInfo['ladder_price'],
'sku_name'=>$goodsInfo['sku_name'],
];
} else {
}else{
$item['goods_info'] = [];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment