|
|
@@ -155,9 +155,9 @@ class ArticleService extends BaseService
|
|
|
$locale = $locale? $locale : session('locale_lang');
|
|
|
$locale = $locale? $locale :'zh-cn';
|
|
|
if($locale == 'zh-cn'){
|
|
|
- $field = ['id','title','cover','views','author','publish_at','file_url','type','content'];
|
|
|
+ $field = ['id','title','cover','views','author','publish_at','file_url','show_type','type','content'];
|
|
|
}else{
|
|
|
- $field = ['id',"title_{$locale} as title",'cover','views','author','publish_at','file_url','type',"content_{$locale} as content"];
|
|
|
+ $field = ['id',"title_{$locale} as title",'cover','views','author','publish_at','file_url','show_type','type',"content_{$locale} as content"];
|
|
|
}
|
|
|
|
|
|
$info = $this->model->where(['id'=> $id,'status'=>1,'mark'=>1])
|