public IActionResult ZhuCe(string phone, string password) { string msg = ""; bool state = false; if (_bll.GetByPhone(phone) > 0) { msg = "手机号已注册!"; } else { int h = _bll.InsertDoctorPhone(phone, password); msg = h > 0 ? "注册成功,请完善资料!" : "注册失败!"; state = h > 0 ? true : false; } return(Ok(new { msg = msg, state = state })); }