|
|
@@ -24,7 +24,7 @@ class Announcement extends Api
|
|
|
$paginator = $announcementModel->where('type_id', $typeId)
|
|
|
->where('status', 1)
|
|
|
->order('id DESC,weigh desc')
|
|
|
- ->field('id,img_url,createtime,' . $this->lan.'_title as title, REPLACE('.$this->lan.'_introduction, CHAR(13) + CHAR(10), "<br>") as introduction,'.$this->lan.'_body as body')
|
|
|
+ ->field('id,img_url,createtime,' . $this->lan.'_title as title,'.$this->lan.'_introduction as introduction,'.$this->lan.'_body as body')
|
|
|
->paginate($this->pageSize);
|
|
|
$this->success('', $this->buildResp($paginator->total(), $paginator->currentPage(), $paginator->items()));
|
|
|
}
|