跳转到主要内容
PFAuthenticationServerLoginWithPSNRequest 数据模型。如果这是用户首次使用 PlayStation :tm: Network 帐户登录且 CreateAccount 设为 true,将创建一个新的 PlayFab 帐户并链接到该 PlayStation :tm: Network 帐户。在这种情况下,该 PlayFab 帐户将没有关联的电子邮件或用户名。否则,如果没有 PlayFab 帐户链接到该 PlayStation :tm: Network 帐户,将返回相应的错误,以便游戏引导用户创建 PlayFab 帐户。

语法

成员

authCode   const char*
is null-terminated
由 PlayStation :tm: Network OAuth 提供程序提供的身份验证代码。 authVersion   const char*
is null-terminated
(可选)可选的 PlayStation :tm: Network 身份验证版本。控制使用哪个 PlayStation :tm: Network 身份验证版本。接受的值为“v2”和“v3”。 createAccount   bool 如果当前没有 PlayFab 帐户链接到此 ID,则自动创建一个。 customTags   PFStringDictionaryEntry const*
may be nullptr
(可选)与请求关联的可选自定义标记(例如生成号、外部跟踪标识符等)。 customTagsCount   uint32_t customTags 的数量 infoRequestParameters   PFGetPlayerCombinedInfoRequestParams const*
may be nullptr
(可选)用于指定要为用户返回哪些信息的标志。 issuerId   int32_t const*
may be nullptr
(可选)PlayStation :tm: Network 颁发者环境的 ID。如果为 null,则默认为生产环境。 redirectUri   const char*
is null-terminated
请求身份验证代码时提供给 PlayStation :tm: Network 的重定向 URI。

要求

头文件: PFAuthenticationTypes.h

另请参阅

PFAuthenticationTypes 成员
最后修改于 2026年10月6日