|
|
@@ -136,24 +136,7 @@ class ArticleService extends BaseService
|
|
|
}
|
|
|
return $datas;
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * 分类
|
|
|
- * @return array[]
|
|
|
- */
|
|
|
- public function getCategory()
|
|
|
- {
|
|
|
- $datas = [
|
|
|
- ["id"=>2,'name'=>'账号安全','icon'=>'/images/icons/icon-safe.png'],
|
|
|
- ["id"=>3,'name'=>'物流查询','icon'=>'/images/icons/icon-delivery.png'],
|
|
|
- ["id"=>4,'name'=>'投诉卖家','icon'=>'/images/icons/icon-complaint.png'],
|
|
|
- ["id"=>5,'name'=>'服务进度','icon'=>'/images/icons/icon-service.png'],
|
|
|
- ["id"=>6,'name'=>'催促发货','icon'=>'/images/icons/icon-send.png'],
|
|
|
- ["id"=>7,'name'=>'常见问题','icon'=>'/images/icons/icon-question.png'],
|
|
|
- ["id"=>10,'name'=>'帮助教程','icon'=>'/images/icons/icon-question.png'],
|
|
|
- ];
|
|
|
- return $datas;
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 获取文章详情
|
|
|
@@ -170,7 +153,7 @@ class ArticleService extends BaseService
|
|
|
|
|
|
$info = $this->model->where(['id'=> $id,'status'=>1,'mark'=>1])
|
|
|
->where('publish_at','<=', date('Y-m-d H:i:s'))
|
|
|
- ->select(['id','title','cover','views','author','publish_at','file_url','show_type','type','content'])
|
|
|
+ ->select(['id','title','cover','views','author','publish_at','file_url','type','content'])
|
|
|
->first();
|
|
|
$info = $info? $info->toArray() : [];
|
|
|
if($info){
|
|
|
@@ -202,7 +185,7 @@ class ArticleService extends BaseService
|
|
|
$id = ConfigService::make()->getConfigByCode('page_'.$type);
|
|
|
if($id>0){
|
|
|
$info = $this->model->where(['id'=> $id,'status'=>1,'mark'=>1])
|
|
|
- ->select(['id','title','cover','type','show_type','file_url','content'])
|
|
|
+ ->select(['id','title','cover','type','file_url','content'])
|
|
|
->first();
|
|
|
$info = $info? $info->toArray() : [];
|
|
|
if($info){
|