|
|
@@ -66,9 +66,10 @@ class ArticleResource extends JsonResource
|
|
|
//渲染简化版标题
|
|
|
$channels = [];
|
|
|
if($request->has('channel')){
|
|
|
+ //有channel
|
|
|
$channels = explode('_',$request->get('channel')) ;
|
|
|
}else if(isset($anthology) && $anthology && !empty($anthology->default_channel)){
|
|
|
- //使用文集channel
|
|
|
+ //没有channel,使用文集channel
|
|
|
$channels[] = $anthology->default_channel;
|
|
|
}
|
|
|
$mdRender = new MdRender(['format'=>'simple']);
|