Explorar el Código

【优化】提交一些错误码

johnclot69 hace 2 años
padre
commit
25971f8ea1

+ 18 - 3
Unity/Assets/Scripts/Codes/Model/Share/Module/Message/ErrorCode.cs

@@ -7,11 +7,26 @@ namespace ET
         // 1-11004 是SocketError请看SocketError定义
         //-----------------------------------
         // 100000-109999是Core层的错误
-        
+
         // 110000以下的错误请看ErrorCore.cs
-        
+
         // 这里配置逻辑层的错误码
         // 110000 - 200000是抛异常的错误
         // 200001以上不抛异常
+
+        /** 登陆错误 **/
+        public const int ERR_LoginError = 200002;
+        /** 重复请求 **/
+        public const int ERR_RequestRepeatedly = 200003;
+        /** 请输入用户名和密码 **/
+        public const int ERR_UserNameOrPasswordIsNull = 200004;
+        /** 用户名或密码格式错误 **/
+        public const int ERR_UserNameOrPasswordFormatError = 200005;
+        /** 用户名或密码错误 **/
+        public const int ERR_UserNameOrPasswordError = 200006;
+        /** 已被永久封禁 **/
+        public const int ERR_UserPermanentBan = 200007;
+        /** 已被限时封禁 **/
+        public const int ERR_UserBanTime = 200008;
     }
-}
+}