34 lines
1.8 KiB
C#
34 lines
1.8 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; // 用户不属于该鉴权服务器
|
|
|
|
|
|
// Token验证状态码
|
|
public static uint GateTokenValidSuccess = 20; // Gate Token有效
|
|
public static uint GateTokenExpired = 21; //Gate Token已过期
|
|
public static uint GateTokenInvalidSignature = 22; //Gate Token签名无效
|
|
public static uint GateTokenGeneralError = 23; // Gate Token验证一般错误
|
|
public static uint GateTokenValidFailed = 24; // Gate Token校验失败 无效
|
|
public static uint GateLoginSuccess = 25;
|
|
public static uint GateRepeatedLogin = 26; //多次重复登录请求
|
|
|
|
public static uint GateUpdateGameNameSuccess = 27; // 修改用户名称成功
|
|
public static uint GateUpdateGameNameFailed = 28; // 修改用户名称失败
|
|
} |