// +---------------------------------------------------------------------- namespace app\controller\admin; use app\controller\Admin; class User extends Admin{ /** * @title 系统首页 */ public function index(){ if ($this->request->isAjax()) { return $this->data; } } /** * @title 个人资料 */ public function profile(){ } /** * @title 检测密码正确性 */ public function checkPassword(){ return true; } /** * @title 修改密码 */ public function resetpwd(){ } }