# 会员业务相关

# api域:

const authServices = kreator.services.auth;

# authServices.getUserInfo()

获取用户个人信息。

# 参数

# 返回值

参数名 类型 描述
bindSource number 注册来源
headImgUrl string 头像图片链接
id number 用户userId
nickName sting 用户昵称
phone string 用户注册手机号
sex number 用户性别
authServices.getUserInfo().then(res=>{
    console.log(res)
})

# authServices.isLogin()

通过cookie中的信息,同步判断用户是否登录

# 参数

# 返回值

boolean 当前是否登录