用密码修改账号(ModifyAccountWithPassword)
函数定义
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ModifyAccountWithPassword(
const FString OldAccount,
const FString OldPhoneAreaCode,
const FString Password,
const FString NewAccount,
const FString NewAccountVerifyCode,
const FString NewPhoneAreaCode,
const FString ExtraJson = "{}");
入参说明
| 名称 | 类型 | 说明 |
|---|---|---|
| OldAccount | FString | 旧账号 |
| OldPhoneAreaCode | FString | 旧账号的手机区域码,如果账号为邮箱则填空。 |
| 密码 | FString | 更多信息,请参见 密码规则。 |
| NewAccount | FString | 新账号 |
| NewAccountVerifyCode | FString | 新账号的验证码 |
| NewPhoneAreaCode | FString | 新账号的手机区域码,如果账号为邮箱则填空。 |
| ExtraJson | FString | 扩展信息 |
回调处理
回调处理接口是 AuthAccountResultObserver。回调数据结构是 AccountResult。
回调 ID 是 kMethodIDAuthModifyAccount。
代码示例
UINTLSDKAPI::ModifyAccountWithPassword("oldaccount@email.com", "","password", "newaccount@email.com", "12345", "");