跳到主要内容

请求设置首次密码并登录(RequestFirstSetPassword)

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

首次登录时设置玩家密码。

函数定义​

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void UINTLSDKAPI::RequestFirstSetPassword(const int32 VerifyType,
const FString VerifyCode,
const int32 AccountType,
const FString Account,
const FString PhoneAreaCode,
const FString Password,
const FString Uid,
const FString Token,
const FString ExtraJson)

回调处理​

回调处理接口是 AuthResultObserver。回调数据结构是 AuthResult。

回调 ID 是 kMethodIDAuthFirstSetPassword。

代码示例​

UINTLSDKAPI::RequestFirstSetPassword();

返回值​

返回玩家 Uid 和 Token 数据。