public IActionResult AdministratorsLogin(Administrators a) { int h = 0; try { h = bll.AdministratorsLogin(a); } catch (Exception ex) { log.Error(ex.Message); } return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "登录成功" : "登录失败" })); }