验证码登录(LoginWithVerifyCode)
函数定义
public static void LoginWithVerifyCode(
string channel,
string account,
string verifyCode,
string phoneAreaCode,
string permissionList = "",
int onlyLoginType = 0);
入参说明
| 参数 | 类型 | 说明 |
|---|---|---|
| channel | string | 自建账号的渠道,与平台账号相关,如 CustomAccount,EGame 等。 |
| account | string | 账号,可用邮箱和手机号注册 |
| verifyCode | string | 验证码 |
| phoneAreaCode | string | 手机区域码,例如 "86" 为中国。如果用邮件地址注册账号,字段则为空。 |
| permissionList | string | 权限列表。自建账号一般为空。 |
| onlyLoginType | int | 0:支持登录和注册 1:只支持登录 |
回调处理
回调处理接口是 AuthResultObserver。回调数据结构是 AuthResult。
回调 ID 是 INTL_AUTH_LOGIN。
代码示例
string channel = INTLChannel.CustomAccount;
string account = "";
string verifyCode = "";
string phoneAreaCode = "86";
string permissionList = "";
INTLAPI.LoginWithVerifyCode(channel, account, verifyCode, phoneAreaCode, permissionList);