| | |
| | | /// </summary> |
| | | public class IMessageCommon |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 接口类的返回信息 |
| | | /// </summary> |
| | |
| | | stateCodeDic["DATA_EXCEPTION"] = HDL_ON.StringId.DataExceptionPleaseTryAgain; |
| | | |
| | | #region 基础服务 新错误码 |
| | | ////服务器正在升级 |
| | | //stateCodeDic["2"] = HDL_ON.StringId.FailureToServer; |
| | | ////验证码校验失败 |
| | | //stateCodeDic["14"] = HDL_ON.StringId.ValidatorCode_ValidCodeAndPhoneNoEqual; |
| | | ////会话超时,请更新token |
| | | //stateCodeDic["10001"] = HDL_ON.StringId.uOperationFailed; |
| | | |
| | | //系统维护中~请稍后再试~ |
| | | stateCodeDic["2"] = HDL_ON.StringId.SystemMaintenance; |
| | | //签名错误 |
| | | stateCodeDic["4"] = HDL_ON.StringId.SignatureError; |
| | | //验证码校验失败 |
| | | stateCodeDic["14"] = HDL_ON.StringId.VerificationCodeWrong; |
| | | //验证码发送频繁,请稍后再试! |
| | | stateCodeDic["15"] = HDL_ON.StringId.VerificationCodeSentFrequently; |
| | | //会话超时,请更新token |
| | | stateCodeDic["10001"] = HDL_ON.StringId.NotLogin; |
| | | ////登录失败,账号或者密码错误 |
| | | //stateCodeDic["10008"] = HDL_ON.StringId.Accountorpassworderro; |
| | | ////账号不存在 |
| | | //stateCodeDic["10010"] = HDL_ON.StringId.uNoLogin; |
| | | stateCodeDic["10008"] = HDL_ON.StringId.LoginFailed_AccountOrPasswordError; |
| | | //账号不存在 |
| | | stateCodeDic[StateCode.ACCOUNT_NOT_EXIST] = HDL_ON.StringId.AccountNotExist; |
| | | //账号已存在 |
| | | stateCodeDic["10012"] = HDL_ON.StringId.AccountExist; |
| | | //#endregion |
| | | |
| | | ////return; |
| | |
| | | catch { } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 常用状态码管理 |
| | | /// </summary> |
| | | public class StateCode |
| | | { |
| | | /// <summary> |
| | | /// 请求成功的状态码 |
| | | /// </summary> |
| | | public const string SUCCESS = "0"; |
| | | /// <summary> |
| | | /// 账号不存在的错误码 |
| | | /// </summary> |
| | | public const string ACCOUNT_NOT_EXIST = "10010"; |
| | | |
| | | } |
| | | } |