//管理员登录 public IActionResult Login(Admin m) { int h = _bll.Login(m); return(Ok(new { msg = h > 0?"登陆成功!":"用户名或密码不正确!", state = h > 0?true:false })); }
public IActionResult Login(string phone, string password) { int h = _bll.Login(phone, password); return(Ok(new { msg = h > 0?"登录成功!":"账号或密码错误!", state = h > 0 ?true:false })); }