public JsonResult CheckSMS(string mobile, string vercode, string matchid) { TeamRegBll bll = new TeamRegBll(); string res = bll.CheckSms(mobile, vercode, matchid); if (res == "-1") { return(RepReurnError("输入的验证码错误")); } else if (res == "-2") { return(RepReurnError("抱歉,这个号码已经被注册过")); } else { return(RepReurn(0, res, null)); } }
public JsonResult CheckSMS(string mobile, string vercode) { TeamRegBll bll = new TeamRegBll(); int res = bll.CheckSms(mobile, vercode, "6a61b95b-2d5d-4373-abaf-bf4e4c438900"); if (res > 0) { return(RepReurn(0, res.ToString(), null)); } else if (res == -2) { return(RepReurnError("抱歉,这个号码已经被注册过")); } else { return(RepReurnError("输入的验证码错误")); } }