登录校验

This commit is contained in:
2022-11-01 13:28:08 +08:00
parent c23de98690
commit 719a9ff89d
8 changed files with 583 additions and 7 deletions

View File

@@ -15,7 +15,9 @@ class AuthResource extends JsonResource
'user_info' => [
'user_id' => $this->id,
'username' => $this->username,
'privacy' => $this->privacy,
'mobile' => $this->mobile,
'email' => $this->email,
'privacy' => $this->privacy ?? true,
'nickname' => $this->info->nickname,
'avatar' => $this->info->avatar,
'address' => $this->username,