pull/1/head
limu 10 months ago
parent 91ea84447b
commit 2ece94d4ae
  1. 2
      app/api/model/User.php

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

Loading…
Cancel
Save