/// <summary> /// 发送验证码修改密码 /// </summary> /// <returns></returns> public ActionResult GetVaildCode() { Return_Msg data = new Return_Msg(); string phoneNum = Context.GetRequest("phonenum", ""); //修改密码 type=0 注册type=1 int type = Context.GetRequestInt("type", 0); Account account = AccountBLL.SingleModel.GetModelByPhone(phoneNum); //代理分销,判断是否已开通过代理,开通过代理就不给他开通 int agentqrcodeid = Context.GetRequestInt("agentqrcodeid", 0); if (agentqrcodeid > 0 && account != null) { Agentinfo agentmodel = AgentinfoBLL.SingleModel.GetModelByAccoundId(account.Id.ToString(), -1); if (agentmodel != null) { data.Msg = "该手机号已经绑定了代理商账号"; return(Json(data, JsonRequestBehavior.AllowGet)); } } data = CommondHelper.GetVaildCode(agentqrcodeid, phoneNum, account, type); return(Json(data)); }