Action 14: Player Status Management
Function Description
- Suspended: Players can log in to the system but cannot play any games. If the player is playing in the game, there will appear the message “Your account has been suspended, please contact customer service.”, and then will divert to game hall or direct close game.
- Locked: Players cannot log in to the system. If the player is playing in the game, there will appear the message “Your account has been locked, please contact customer service.”, and then will direct logout from system.
- If a player is suspended or locked while in game, the game will immediate stopped and those pending transactions is counted.
- This function will immediate take effect once the player status been modified.
Parameter
Parameter | Format | Mandatory | Description |
---|---|---|---|
action | Integer | Y | 14 |
ts | Long | Y | Current system time |
parent | String(50) | Y | Agent ID |
uid | String(50) | Y | Player ID |
operation_code | String(1) | Y | Account status 2: Suspended 3: Unsuspended 4: Locked 5: Unlocked |
Example
{
"action":14,
"ts":1447452951820,
"parent":"testag",
"uid":"testpl01",
"operation_code":"2"
}
Return Results
Parameter | Format | Description |
---|---|---|
status | String(4) | Success: 0000 Error: See Error Codes in Appendix |
err_text | String(255) | Error message |
Operation Sample
// Http Request
http://{API_Address}/apiRequest.do?dc=jb&x=udbFVt_xv0tsAmLDpz5Z3Ct4-p0gedUPdQO-UWsfd6PHz9Ky-wM3mIC9El4kwl_SlX3lpraVaCLnp-K0WsgKmpYTV9XpYncHzbtvn591qfaAwpGyOvsS4v1Yj7OvpRw_iU4554RuSsvHpI9jaj4XUgTK5yzbWKEddANjAAbxF0s=
// Http Response (success)
{
"status":"0000"
}
// Http Response (error)
{
"status":"7502",
"err_text":"User is suspended."
}