From 3916ea542d5531425ea2a2c998f713d73c98ac4b Mon Sep 17 00:00:00 2001 From: Devil Date: Fri, 21 May 2021 18:26:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=20app=20=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=92=A9=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/UserService.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/application/service/UserService.php b/application/service/UserService.php index 659f1eca3..1d8a39529 100755 --- a/application/service/UserService.php +++ b/application/service/UserService.php @@ -1879,6 +1879,17 @@ class UserService self::UserLoginRecord($user['id'], true); } } + + // 用户信息钩子 + $hook_name = 'plugins_service_user_app_info_handle'; + Hook::listen($hook_name, [ + 'hook_name' => $hook_name, + 'is_backend' => true, + 'user_id' => $user_id, + 'where_field' => $where_field, + 'where_value' => $where_value, + 'user' => &$user, + ]); } return $user;