From 4ddb0d0dbc7e010eb52722d7550f0a43401c74f7 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Tue, 21 May 2024 17:46:39 +0800 Subject: [PATCH] YS --- application/controllers/Admin/Login.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/controllers/Admin/Login.php b/application/controllers/Admin/Login.php index 2797e7a..8b4c50e 100644 --- a/application/controllers/Admin/Login.php +++ b/application/controllers/Admin/Login.php @@ -23,4 +23,10 @@ class Admin_LoginController extends Ctrl_Admin{ $data['token'] = Tool_Fnc::markmd5($AdminInfo['admin_token'],$AdminInfo['admin_password']); Tool_Fnc::apiMsg('登陆成功',20000,$data); } + public function infoAction(){ + $data['avatar'] = ""; + $data['introduction'] = ""; + $data['name'] = "admin"; + $data['roles'][] = "admin"; + } } \ No newline at end of file