DelayNoMore/battle_srv/common/constants.json

72 lines
1.8 KiB
JSON
Raw Normal View History

2022-09-20 15:50:01 +00:00
{
"RET_CODE": {
"__comment__": "Websocket",
"OK": 3000,
"UNKNOWN_ERROR": 3001,
"INVALID_REQUEST_PARAM": 3002,
"IS_TEST_ACC": 3003,
"MYSQL_ERROR": 3004,
"NONEXISTENT_ACT": 3005,
"LACK_OF_DIAMOND": 3006,
"LACK_OF_GOLD": 3007,
"LACK_OF_ENERGY": 3008,
"NONEXISTENT_ACT_HANDLER": 3009,
"LOCALLY_NO_AVAILABLE_ROOM": 3010,
"LOCALLY_NO_SPECIFIED_ROOM": 3011,
"PLAYER_NOT_ADDABLE_TO_ROOM": 3012,
"PLAYER_NOT_READDABLE_TO_ROOM": 3013,
"PLAYER_NOT_FOUND": 3014,
"PLAYER_CHEATING": 3015,
"WECHAT_SERVER_ERROR": 3016,
"IS_BOT_ACC": 3017,
"ACTIVE_WATCHDOG": 3018,
"BATTLE_STOPPED": 3019,
2022-12-22 03:35:18 +00:00
"CLIENT_MISMATCHED_RENDER_FRAME": 3020,
2022-09-20 15:50:01 +00:00
"__comment__": "OTHERS",
2022-09-20 15:50:01 +00:00
"INVALID_TOKEN": 2001,
"DUPLICATED": 2002,
"INCORRECT_HANDLE": 2004,
"INCORRECT_PASSWORD": 2006,
"INCORRECT_CAPTCHA": 2007,
"INVALID_EMAIL_LITERAL": 2008,
"NO_ASSOCIATED_EMAIL": 2009,
"SEND_EMAIL_TIMEOUT": 2010,
"INCORRECT_PHONE_COUNTRY_CODE": 2011,
"NEW_HANDLE_CONFLICT": 2013,
"FAILED_TO_UPDATE": 2014,
"FAILED_TO_DELETE": 2015,
"FAILED_TO_CREATE": 2016,
"INCORRECT_PHONE_NUMBER": 2018,
"INSUFFICIENT_MEM_TO_ALLOCATE_CONNECTION": 2019,
"PASSWORD_RESET_CODE_GENERATION_PER_EMAIL_TOO_FREQUENTLY": 2020,
"TRADE_CREATION_TOO_FREQUENTLY": 2021,
"MAP_NOT_UNLOCKED": 2022,
"GET_SMS_CAPTCHA_RESP_ERROR_CODE": 2023,
"SMS_CAPTCHA_REQUESTED_TOO_FREQUENTLY": 2024,
"SMS_CAPTCHA_NOT_MATCH": 2025,
2022-09-20 15:50:01 +00:00
"NOT_IMPLEMENTED_YET": 65535
},
"AUTH_CHANNEL": {
"SMS": 0,
"WECHAT": 1,
"WECHAT_GAME": 2
},
"PLAYER": {
"DIAMOND": 1,
"GOLD": 2,
"ENERGY": 3,
"SMS_EXPIRED_SECONDS":120,
"SMS_VALID_RESEND_PERIOD_SECONDS":30,
"INT_AUTH_TOKEN_TTL_SECONDS":604800
},
"WS": {
"INTERVAL_TO_PING": 2000,
"WILL_KICK_IF_INACTIVE_FOR": 4000
2022-09-20 15:50:01 +00:00
}
}