Commit 26f30dfa by 杨树贤

补回代码

parent 190fb265
Showing with 10 additions and 0 deletions
......@@ -42,4 +42,14 @@ class UserModel extends Authenticatable implements MustVerifyEmail
'email_verified_at' => 'datetime',
];
//获取用户详情
public static function getUserInfo($user_id)
{
$map = [
"id" => $user_id
];
$res = self::where($map)->first();
return ($res) ? $res->toArray() : [];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment