GUALoginResult
Data Structures
- Unity
- Unreal Engine
GUALoginResult: Login callback information, inherits from GUABaseResult, and includes login information.
| Parameter | Type | Description |
|---|---|---|
| OpenID | string | Unique user ID |
| Token | string | User token |
| TokenExpire | long | Token expiration timestamp For example, 1600844518. |
| FirstLogin | int | Whether this is the first login -1: Unknown 0: No 1: Yes |
| UserName | string | User defined nickname |
| Gender | int | Gender 0: Undefined (WeChat and QQ will return 0) 1: Male 2: Female |
| Birthdate | string | Returns empty, collection of player birthdate is not allowed according to compliance requirements |
| PictureUrl | string | User avatar URL |
| Pf | string | pf value For Midas payment |
| Pfkey | string | pf key For Midas payment |
| RealNameAuth | bool | Whether real-name verification is required |
| ChannelID | int | Channel ID |
| Channel | string | Channel name |
| ChannelInfo | string | Third-party channel login information |
| ConfirmCode | string | Confirmation code |
| ConfirmCodeExpireTime [MSDK Only] | long | Confirmation code expiration time |
| BindList | string | Linking information JSON data in array type |
| LegalDocumentsAcceptedVersion [Player Network SDK Only] | string | The accepted version of legal documents |
| DeleteAccountStatus [Player Network SDK Only] | int | Account deletion status For more information, see DeleteAccountStatus. |
| DeleteAccountInfo | String | Reach out to the Player Network representative if DeleteAccountInfo is requiredDelete account information, JSON data. For more information, see DeleteAccountInfo. |
| TransferCode [Player Network SDK Only] | string | Transfer code |
| TransferCodeExpire [Player Network SDK Only] | long | Expiration time for transfer code |
GUALoginResult: Login callback information, inherits from GUABaseResult, nd includes login information.
| Parameter | Type | Description |
|---|---|---|
| openid | std::string | Unique user ID |
| token | std::string | User token |
| token_expire_time | int64_t | Token expiration timestamp For example, 1600844518 |
| first_login | int32_t | Whether this is the first login -1: Unknown 0: No 1: Yes |
| user_name | std::string | User defined nickname |
| gender | int32 | Gender 0: Undefined 1: Male 2: Female |
| birthday | std::string | Returns empty, collection of player birthdate is not allowed according to compliance requirements |
| picture_url | std::string | User avatar URL |
| pf | std::string | pf value For Midas payment |
| pf_key | std::string | pf key For Midas payment |
| real_name_auth | bool | Whether real-name verification is required |
| channelid | int32 | Channel ID |
| channel | std::string | Channel name |
| channel_info | std::string | Third-party channel login information JSON format |
| confirm_code | std::string | Confirmation code |
| confirm_code_expire_time [MSDK Only] | int64_t | Confirmation code expiration time |
| bind_list | std::string | Linking information JSON data in array type |
| legal_doc [Player Network SDK Only] | std::string | The accepted version of legal documents |
| del_account_status [Player Network SDK Only] | int32_t | Account deletion status For more information, see DeleteAccountStatus. |
| DeleteAccountInfo | String | Reach out to the Player Network representative if DeleteAccountInfo is requiredDelete account information, JSON data. For more information, see DeleteAccountInfo. |
| transfer_code [Player Network SDK Only] | std::string | Transfer code |
| transfer_code_expire_time [Player Network SDK Only] | int64_t | Expiration time for transfer code |
DeleteAccountStatus
caution
Reach out to the Player Network representative to configure DeleteAccountStatus, otherwise DeleteAccountStatus returns -1.
| Value | Description | Remark |
|---|---|---|
| 0 | No account deletion or account deletion has been canceled | Allow players to enter the game |
| 1 | Account deletion cooling-off period | Reject player login, prompt players whether to cancel account deletion and enter the game |
| 2 | Account deletion completed | Reject player login |
| 3 | Account deletion in progress | Reject player login |
| 4 | Account deletion failed | Reject player login |
| -1 | The backend does not return the account deletion status. | Recommend allowing players to enter the game |
| -2 | The network is unstable for the deletion status service. | Recommend allowing players to enter the game |
| -3 | DMCS response data format is wrong (The return status or err_code fields are missing in JSON) | Recommend allowing players to enter the game |
| -4 | Internal error (parameter verification is incorrect or configuration verification is not equal to internal authorization logic.) | Recommend allowing players to enter the game |
| -10 or -11 | Internal error in the account deletion status service | Recommend allowing players to enter the game |
| >= 5 | Undefined | Recommend allowing players to enter the game |
Reasons for recommending allowing players to enter the game:
- Rejecting player login affects all players. It is not recommended to make it the critical path for account deletion.
- At the same time, games should review if allowing players to enter the game when the return value is negative will have other influences on game data.