Polyv Help Center

Help Center

User Module

Updated: 2024-10-11 15:26:25

用户模块(user) is a module for handling audience-related functionality, primarily used to retrieve various information about the current audience and set the audience nickname.

1. API Method Overview

API Method Description
getUserInfo Get current user information
setWxMiniBaseInfo Set WeChat basic information
setWxMiniUserInfo Set Mini Program user information
getWxMiniUserInfo Get Mini Program user information
isSpecialUserType Determine if it is a special user type
getUserId Get current user userId
getUserNick Get current user nickname
getUserAvatar Get current user avatar URL
getUserOpenId Get current user's WeChat openId
getUserUnionId Get current user's WeChat unionId
getUserAuthType Get current user's authorization method

2. Event Overview

Event Description
UserEvents.UserInfoChange User information changed
UserEvents.WxMiniUserInfoChange -
UserEvents.UserSetNick Any user sets nickname
UserEvents.CurrentUserSetNick Current user sets nickname
UserEvents.SetNickError Failed to set nickname
UserEvents.KickCurrentUser Kick current audience
联系客服,在线咨询
在线咨询