request->post('page',0); $limit = $this->request->post('limit',0); $postNoticeService = new \addons\paotui\service\PosterNotice(); $data = $postNoticeService->getNoticeList($page,$limit); $this->success('请求成功',$data); } /** * 获取订单详情 * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException * @throws \think\exception\DbException */ public function info(){ $id = $this->request->post('id',0); $postNoticeService = new \addons\paotui\service\PosterNotice(); $postNoticeInfo = $postNoticeService->getNoticeInfo($id); if($postNoticeInfo){ $this->success("请求成功",$postNoticeInfo); }else{ $this->error("请求失败"); } } }