PFAuthenticationLoginWithCustomIDRequest

PFAuthenticationLoginWithCustomIDRequest 数据模型。 强烈建议开发人员确保客户极不可能生成已由其他客户使用的 ID。 如果这是用户首次使用自定义 ID 登录,并且 CreateAccount 设置为 true,则将创建新的 PlayFab 帐户并将其链接到自定义 ID。 在这种情况下,不会将任何电子邮件或用户名与 PlayFab 帐户关联。 否则,如果没有 PlayFab 帐户链接到自定义 ID,则会返回一个错误,指示将返回此帐户,以便游戏可以指导用户完成 PlayFab 帐户的创建。

语法

typedef struct PFAuthenticationLoginWithCustomIDRequest {  
    bool createAccount;  
    const char* customId;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;  
    const char* playerSecret;  
} PFAuthenticationLoginWithCustomIDRequest;  

成员

createAccount 布尔

如果当前未链接到此 ID,则自动创建 PlayFab 帐户。

customId const char*
以 null 结尾

游戏生成的用户自定义唯一标识符。

customTags PFStringDictionaryEntry const*
可能是 nullptr

(可选)与请求关联的可选自定义标记(例如内部版本号、外部跟踪标识符等)。

customTagsCount uint32_t

customTags 计数

infoRequestParameters PFGetPlayerCombinedInfoRequestParams const*
可能是 nullptr

(可选)要为用户返回的信息片段的标志。

playerSecret const char*
以 null 结尾

(可选)用于验证 API 请求签名的玩家密码(仅限企业)。

要求

标头:PFAuthenticationTypes.h

另请参阅

PFAuthenticationTypes 成员