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:
commit
91146c318b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user