作者 lyh

gx

... ... @@ -107,7 +107,7 @@ class BlogLogic extends BaseLogic
foreach ($category as $v){
$this->getAllFather($v,$str);
}
$info['category_id'] = array_unique($str);
$info['category_id'] = array_values(array_unique($str));
//获取标签名称
$blogLabelLogic = new BlogLabelLogic();
$info['label_name'] = $blogLabelLogic->getLabelName($info['label_id']);
... ...
... ... @@ -157,7 +157,7 @@ class NewsLogic extends BaseLogic
foreach ($category as $v){
$this->getAllFather($v,$str);
}
$info['category_id'] = array_unique($str);
$info['category_id'] = array_values(array_unique($str));
$info['image_link'] = getImageUrl($info['image']);
return $this->success($info);
}
... ...