public JsonResult SendSms(string ids, string sendCon) { var userIds = string.IsNullOrWhiteSpace(ids) ? null : ids.Split(',').Select(s => long.Parse(s)).ToArray(); if (userIds == null || userIds.Length == 0) { throw new MallException("请选择发送对象!"); } if (sendCon.Equals("")) { throw new MallException("请输入发送内容!"); } MemberApplication.SendMsgByUserIds(userIds, HttpUtility.HtmlEncode(sendCon)); return(Json(new { Success = true }, true)); }