| | |
| | | stateCodeDic["10017"] = StringId.RegistrationFailedPleaseTryAgain; |
| | | ////租户不存在 |
| | | //stateCodeDic["10018"] = StringId.10018; |
| | | //密码连续输错次数已达到10次,用户已被锁定,请次日0点后再登陆 |
| | | //密码错误次数过多,账号被锁定! |
| | | stateCodeDic["10019"] = StringId.AccountLoginLock; |
| | | |
| | | //没有权限 |
| | | stateCodeDic["10105"] = StringId.PermissionDenied; |
| | | //验证码已经发送 |
| | |
| | | /// <param name="statuCode"></param> |
| | | /// <param name="isTipStyle"></param> |
| | | /// <param name="tipStr">补充的错误提示</param> |
| | | public void ShowErrorInfoAlter(string statuCode, bool isTipStyle = true, int closeTime = 2, string tipStr = "") |
| | | public void ShowErrorInfoAlter(string statuCode, bool isTipStyle = true, int closeTime = 2, string tipStr = "",bool showAllMsg = true) |
| | | { |
| | | try |
| | | { |
| | |
| | | if (mes == null) return; |
| | | if (!string.IsNullOrEmpty(tipStr)) |
| | | { |
| | | mes = tipStr + "\n" + mes; |
| | | if (showAllMsg) |
| | | { |
| | | mes = tipStr + "\n" + mes; |
| | | }else |
| | | { |
| | | mes = tipStr; |
| | | } |
| | | } |
| | | if (isTipStyle) |
| | | { |
| | |
| | | try |
| | | { |
| | | var success = new HttpServerRequest().RefreshToken(); |
| | | if (success) { |
| | | if (success == StateCode.SUCCESS) { |
| | | Utlis.WriteLine("RefreshToken success"); |
| | | } |
| | | } |
| | |
| | | /// 账号不存在的错误码 |
| | | /// </summary> |
| | | public const string ACCOUNT_NOT_EXIST = "10010"; |
| | | /// <summary> |
| | | /// 登录锁定,密码错误次数过多 |
| | | /// 密码输入错误超过10次,请30分钟后重试! |
| | | /// </summary> |
| | | public const string AccountLoginLock = "10019"; |
| | | |
| | | |
| | | |
| | | } |