Wms/Wms/Controllers/WeatherForecastController.cs
@@ -59,7 +59,7 @@ { var userId = await _userMan.LoginAdmin(model.LoginName, model.LoginPwd); if (userId != -1) // if (userId != -1 && userId != -2) // { if (userId != 0) //正确返回 { @@ -77,10 +77,14 @@ throw Oops.Bah("当前账号已被禁用"); } } else //账号密码错误 else if (userId == -1) //账号密码错误 { throw Oops.Bah("当前账号或密码错误"); } else { throw Oops.Bah("当前账号已被锁定,请联系管理员处理"); } } else //数据格式错误 {