1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-29 05:41:37 +08:00

Merge branch 'koogua/v1.4.5' into demo

This commit is contained in:
koogua 2021-10-06 18:40:00 +08:00
commit 91146c318b

View File

@ -29,10 +29,14 @@ trait UserTrait
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);