where(array("status"=>1))->count(); $page = $this->page($count, 20); $lists = $oauth_user_model ->where(array("status"=>1)) ->order("create_time DESC") ->limit($page->firstRow . ',' . $page->listRows) ->select(); $this->assign("page", $page->show('Admin')); $this->assign('lists', $lists); $this->display(); } // 后台删除第三方用户绑定 public function delete(){ $id = I('get.id',0,'intval'); if(empty($id)){ $this->error('非法数据!'); } $result = M("OauthUser")->where(array("id"=>$id))->delete(); if ($result!==false) { $this->success("删除成功!", U("oauthadmin/index")); } else { $this->error('删除失败!'); } } }