public IActionResult Zhuce(string phone) { int h = 0; DataSet ds = _bll.ZhuCe(phone); if (ds.Tables[0].Rows.Count > 0) { h = 0; } else { h = _bll.ZhuceIn(phone); } return(Ok(new { msg = h > 0?"注册成功!":"手机号已存在!", state = h > 0?true:false })); }