浏览代码

公告列表

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