跳到主要内容

用当前登录态修改账号(ModifyAccountWithLoginState)[仅限 Player Network SDK]

[仅限 Player Network SDK] 登录之后,可以用当前的登录态修改当前的账号。

支持的平台

支持Android, iOS, Windows 平台。

函数定义

void ModifyAccountWithLoginState(
string oldPhoneAreaCode,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string extraJson = "{}");

入参说明

参数类型说明
oldphoneAreaCodestring旧账号的手机区域码。如果账号为邮箱注册,则为空。
newAccountstring新账号
newAccountVerifyCodestring新账号的验证码
newphoneAreaCodestring新账号的手机区域码。如果账号注册为邮箱,则为空。
extraJsonstring扩展信息

回调处理

回调处理接口是 GUAAccountResultObservers。回调数据结构是 GUAAccountResult

回调事件是 AccountEvents 。 回调 ID 是 GUA_ACCOUNT_MODIFY_ACCOUNT

代码示例

UnionAdapterAPI.GetAccountService().ModifyAccountWithLoginState("886", "newAccount", "newAccountVerifyCode", "86");