Exemplo n.º 1
0
        public ActionResult InsertMsg(string Mbno, string SendTime, string Msg)//运维-档案-人员管理-发送短信
        {
            string result = "";

            try
            {
                if (SendTime.Equals(""))
                {
                    SendTime = DateTime.Now.ToString();
                }
                if (!Mbno.Equals("") && !Msg.Equals(""))
                {
                    string[] Mlist = Mbno.Split(',');
                    if (Mlist.Length > 0)
                    {
                        for (int i = 0; i < Mlist.Length; i++)
                        {
                            UtilsSms.smsContent(Mlist[i], Msg);
                        }
                    }
                    result = "OK";
                }
                return(Content(result));
            }
            catch (Exception ex)
            {
                return(Content(ex.ToString()));
            }
        }