22 lines
1.0 KiB
C#
22 lines
1.0 KiB
C#
using Fantasy.Async;
|
|
|
|
public static class GameErrorCode
|
|
{
|
|
public static uint Failed = 0;
|
|
public static uint Success = 1; // 成功
|
|
public static uint UsernameOrPasswordCannotBeEmpty = 2; // 用户名不能为空
|
|
public static uint PasswordIncorrect = 3; // 密码不正确
|
|
public static uint UserAlreadyExists = 4; // 用户已存在
|
|
public static uint UserNotFound = 5; // 用户不存在
|
|
public static uint InvalidToken = 6;
|
|
public static uint UserNotFoundOrPasswordIsNotCorrect = 7; //用户名不存在 或者 密码 不正确
|
|
public static uint UserAlreadyLogin = 8; // 用户已登录
|
|
|
|
// 无效的身份验证令牌
|
|
public static uint AccessDenied = 10; // 访问被拒绝
|
|
public static uint ServerError = 11; // 服务器内部错误
|
|
public static uint InvalidInput = 12; // 输入不合法
|
|
public static uint TooManyRequests = 13; // 请求过多(防止刷接口)
|
|
public static uint UnauthorizedServer = 14; // 用户不属于该鉴权服务器
|
|
|
|
} |