跳到主要内容

验证码登录(LoginWithVerifyCode)[仅限 Player Network SDK]

[仅限 Player Network SDK] 通过验证码登录。

支持的平台

支持Android, iOS, Windows 平台。

函数定义

void LoginWithVerifyCode(
string channel,
string account,
string password,
string verifyCode,
string phoneAreaCode,
string permissionList = "");

入参说明

参数类型说明
channelstring自建账号的渠道,与平台账号相关,如 CustomAccount,EGame 等。
accountstring账号,支持邮箱和手机号
passwordstring更多信息,请参见 密码规则
phoneAreaCodestring手机区域码例如中国为"86",如果账号为邮箱则填空。
permissionListstring权限列表。自建账号一般为空。

回调处理

回调处理接口是 GUALoginResultObservers。回调数据结构是 GUALoginResult

回调事件是 LoginResultEvents。 回调 ID 是 GUA_ACCOUNT_LOGIN

代码示例

UnionAdapterAPI.GetAccountService().LoginWithVerifyCode("WeChat", "account", "password", "verifyCode", "86");