소스 검색

公告列表

afa 8 달 전
부모
커밋
2d7837b6e8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/api/controller/Announcement.php

+ 1 - 1
application/api/controller/Announcement.php

@@ -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()));
     }