/// <summary> /// 重置密码 /// </summary> /// <param name="phone"></param> /// <returns></returns> public string SendReSetPwdMsg(string phone) { if (phone.IsEmpty()) { return("{\"success\":\"false\",\"msg\":\"参数有空值\"}");; } BLL.SenMSg bll = new BLL.SenMSg(); return(bll.SendResetPwd(phone)); }
/// <summary> /// 发送预约短信 /// </summary> /// <param name="phone"></param> /// <returns></returns> public string SendOrderMsg(string phone) { if (!Regex.IsMatch(phone, "^\\d{11}$")) { return("{\"success\":\"false\",\"msg\":\"手机号格式错误\"}");; } if (phone.IsEmpty()) { return("{\"success\":\"false\",\"msg\":\"参数有空值\"}");; } BLL.SenMSg bll = new BLL.SenMSg(); return(bll.SendOrderMsg(phone)); }