跳到主要内容

用验证码修改账号(ModifyAccountWithVerifyCode)

AndroidiOSWindows
如果您使用的是 Unity 引擎,请参见 Unity SDK 的 ModifyAccountWithVerifyCode。

函数定义​

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ModifyAccountWithVerifyCode(
const FString OldAccount,
const FString OldAccountVerifyCode,
const FString OldPhoneAreaCode,
const FString NewAccount,
const FString NewAccountVerifyCode,
const FString NewPhoneAreaCode,
const FString ExtraJson = "{}");

入参说明​

名称类型说明
OldAccountFString旧账号
OldAccountVerifyCodeFString旧账号的验证码
OldPhoneAreaCodeFString旧账号的手机区域码,如果账号为邮箱则填空。
NewAccountFString新账号
NewAccountVerifyCodeFString新账号的验证码
NewPhoneAreaCodeFString新账号的手机区域码,如果账号为邮箱则填空。
ExtraJsonFString扩展信息

回调处理​

回调处理接口是 AuthAccountResultObserver。回调数据结构是 AccountResult。

回调 ID 是 kMethodIDAuthModifyAccount。

代码示例​

UINTLSDKAPI::ModifyAccountWithVerifyCode("oldaccount@email.com", "12345", "", "newaccount@email.com", "56789", "");