$this->auth->company_id ]; if(!empty($keyword)){ $where['brand|name|typename'] = ['LIKE','%'.$keyword.'%']; } $list = Db::name('password') ->where($where) ->autopage() ->select(); $list = list_domain_image($list,['logo_image']); $this->success(1, $list); } //详情 public function info(){ $id = input('id',0); $info = Db::name('password') ->where('id',$id) ->find(); $info = info_domain_image($info,['logo_image']); $this->success(1, $info); } }