作者 赵彬吉

update

@@ -29,6 +29,9 @@ class EmailController extends BaseController @@ -29,6 +29,9 @@ class EmailController extends BaseController
29 29
30 public function list(Email $emailModel) 30 public function list(Email $emailModel)
31 { 31 {
  32 + if(!empty($this->param['email'])){
  33 + $this->map['email'] = ['like','%'.$this->param['email'].'%'];
  34 + }
32 $lists = $emailModel->lists($this->map, $this->page, $this->row); 35 $lists = $emailModel->lists($this->map, $this->page, $this->row);
33 $this->response('success', Code::SUCCESS, $lists); 36 $this->response('success', Code::SUCCESS, $lists);
34 } 37 }