diff --git a/app/api/model/User.php b/app/api/model/User.php index 34246725..bc9d3a62 100644 --- a/app/api/model/User.php +++ b/app/api/model/User.php @@ -63,7 +63,7 @@ class User extends UserModel // 用户的ID $userId = (int)Cache::get($token)['user']['user_id']; // 用户基本信息 - $userInfo = self::detail($userId); + $userInfo = self::detail($userId,['avatar']); if (empty($userInfo) || $userInfo['is_delete']) { throwError('很抱歉,用户信息不存在或已删除', config('status.not_logged')); }