checkUser($id); } public function checkUserCache($id) { $validator = new UserValidator(); return $validator->checkUserCache($id); } public function handleShallowUserInfo($id) { if (empty($id)) return new \stdClass(); $userRepo = new UserRepo(); $user = $userRepo->findShallowUserById($id); if (!$user) return new \stdClass(); $result = $user->toArray(); $result['avatar'] = kg_cos_user_avatar_url($user->avatar); return $result; } }