用当前登录态修改账号(ModifyAccountWithLoginState)
登录之后,可以用当前的登录态修改当前的账号。
函数定义
public void ModifyAccountWithLoginState(
string oldPhoneAreaCode,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string extraJson = "{}");
入参说明
| 参数 | 类型 | 说明 |
|---|---|---|
| oldphoneAreaCode | string | 旧账号的手机区域码。如果账号为邮箱注册,则为空。 |
| newAccount | string | 新账号 |
| newAccountVerifyCode | string | 新账号的验证码 |
| newphoneAreaCode | string | 新账号的手机区域码。如果账号注册为邮箱,则为空。 |
| extraJson | string | 扩展信息 |
回调处理
回调处理接口是 AuthAccountResultObserver。回调数据结 构是 AccountResult。
回调 ID 是 INTL_AUTH_MODIFY_ACCOUNT。
代码示例
string oldPhoneAreaCode = "";
string newAccount = "";
string newAccountVerifyCode = "";
string newPhoneAreaCode = "";
INTLAPI.ModifyAccountWithLoginState(oldPhoneAreaCode, newAccount, newAccountVerifyCode, newPhoneAreaCode);