|
|
@@ -24,8 +24,8 @@ class Announcement extends Api
|
|
|
$typeId = $this->request->param('type_id', 1, 'intval');
|
|
|
$paginator = $announcementModel->where('type_id', $typeId)
|
|
|
->where('status', 1)->where('to_lang', $this->lan)
|
|
|
- ->order('weigh desc')
|
|
|
- ->field('id,to_lang,img_url,createtime,title as title,introduction,body')
|
|
|
+ ->field('id,to_lang,weigh,img_url,createtime,title as title,introduction,body')
|
|
|
+ ->order('weigh desc, id desc')
|
|
|
->paginate($this->pageSize);
|
|
|
$this->success('', $this->buildResp($paginator->total(), $paginator->currentPage(), $paginator->items()));
|
|
|
}
|