|
|
|
@ -18,7 +18,11 @@ class NoticeController extends Controller |
|
|
|
if ($page && !ctype_digit($page)) { |
|
|
|
return $this->error('页码错误'); |
|
|
|
} |
|
|
|
$list = Notice::where('agent_id', $this->agent_id)->select(['title', 'updated_at'])->simplePaginate(15); |
|
|
|
|
|
|
|
$list = Notice::where('agent_id', $this->agent_id) |
|
|
|
->select(['title', 'updated_at']) |
|
|
|
->orderBy('id', 'DESC') |
|
|
|
->simplePaginate(15); |
|
|
|
return $this->success($list); |
|
|
|
} |
|
|
|
|
|
|
|
|