Login callback information (GUALoginResult)
Data Structure
- Unity
- Unreal Engine
GUALoginResult: Login callback information, inherits from GUABaseResult, contains login information.
| Parameters | Type | Description |
|---|---|---|
| OpenID | string | Player Network SDK User Unique Identifier |
| Token | string | User credential |
| TokenExpire | long | Token Expiration Timestamp For example, 1600844518 |
| FirstLogin | int | Is first login Unknown: -1 No: 0 Yes: 1 |
| UserName | string | Nickname |
| Gender | int | Gender 0: Undefined (WeChat and QQ channels always return 0) 1: Male 2: Female |
| Birthdate | string | Returns empty due to compliance requirements that prohibit collecting the player’s date of birth |
| PictureUrl | string | Profile picture URL |
| Pf | string | pf value Used for Midas payment |
| Pfkey | string | pf key Used for Midas payment |
| RealNameAuth | bool | Is Real-Name Verification Required |
| ChannelID | int | Channel Number |
| Channel | string | Channel Name |
| ChannelInfo | string | Third-party channel login information |
| ConfirmCode | string | Verification Code |
| ConfirmCodeExpireTime [MSD only] | long | Confirm code expiration time |
| BindList | string | Binding information JSON Data, array type |
| LegalDocumentsAcceptedVersion [Player Network SDK only] | string | Legal Document Version Information |
| DeleteAccountStatus [Player Network SDK only] | int | Account deletion status See DeleteAccountStatus for more info. |
| DeleteAccountInfo | string | If `DeleteAccountInfo' is needed, contact Player Network Assistant Account deactivation info, JSON data. For more information, see DeleteAccountInfo. |
| TransferCode [Player Network SDK only] | string | Visitor transfer code for special areas |
| TransferCodeExpire [Player Network SDK only] | long | Visitor transfer code expiration time for special areas |
GUALoginResult: Login callback information, inherits from GUABaseResult, contains login information.
| Parameters | Type | Description |
|---|---|---|
| openid | std::string | Player Network SDK User Unique Identifier |
| token | std::string | User credential |
| token_expire_time | int64_t | Token expiration timestamp For example, 1600844518 |
| first_login | int32_t | Is first login Unknown: -1 No: 0 Yes: 1 |
| user_name | std::string | Nickname |
| gender | int32 | Gender 0: Undefined 1: Male 2: Female |
| birthday | std::string | Returns empty due to compliance requirements that prohibit collecting the player’s date of birth |
| picture_url | std::string | Profile picture URL |
| pf | std::string | pf value Used for Midas payment |
| pf_key | std::string | pf key Used for Midas payment |
| real_name_auth | bool | Is Real-Name Verification Required |
| channelid | int32 | Channel Number |
| channel | std::string | Channel Name |
| channel_info | std::string | Third-party channel login information JSON data |
| confirm_code | std::string | Verification code |
| confirm_code_expire_time [MSD only] | int64_t | Confirm code expiration time |
| bind_list | std::string | Binding information JSON Data, array type |
| legal_doc [Player Network SDK only] | std::string | Legal Document Version Information |
| del_account_status [Player Network SDK only] | int32_t | Account deletion status See DeleteAccountStatus for more info. |
| DeleteAccountInfo | string | If `DeleteAccountInfo' is needed, contact Player Network Assistant Account deactivation info, JSON data. For more information, see DeleteAccountInfo. |
| transfer_code [Player Network SDK only] | std::string | Visitor transfer code for special areas |
| transfer_code_expire_time [Player Network SDK only] | int64_t | Visitor transfer code expiration time for special areas |
DeleteAccountStatus
caution
For businesses that require DeleteAccountStatus, please contact Player Network Assistant for configuration. Otherwise, DeleteAccountStatus will return -1.
| Value | Description | Note |
|---|---|---|
| 0 | No account deletion performed or account deletion canceled | Allow player to enter the game |
| 1 | Account Deletion Cooling-off Period | Block user login and prompt the user to choose whether to cancel account deletion before entering the game |
| 2 | Account deletion complete | Do not allow player to enter the game |
| 3 | Account deletion in progress | Do not allow player to enter the game |
| 4 | Account deletion failed | Do not allow player to enter the game |
| -1 | No account deletion status returned from the backend | It is recommended to allow the player to enter the game |
| -2 | Account deletion status service network anomaly | It is recommended to allow the player to enter the game |
| -3 | DMCS response data format is incorrect (missing return status or err_code field in JSON) | It is recommended to allow the player to enter the game |
| -4 | Internal error (parameter validation failed or configuration validation does not match internal authorization logic) | It is recommended to allow the player to enter the game |
| -10 or -11 | Account deletion status service internal error | It is recommended to allow the player to enter the game |
| > = 5 | Undefined | It is recommended to allow the player to enter the game |
Reasons for recommending allowing the player to enter the game:
- If player login is denied, it will affect all users. It is not recommended to make this a critical path for account deletion.
- At the same time, the game side also needs to evaluate whether allowing the player to enter when the return value is negative will have any other impact on the game data.