Example #1
0
        public ActionResult SendSXTSms(string vUserID, string vAccount, string vPassword, string vSendTime, string vPhone, string vContent)
        {
            vSendTime = "";//定时发送,格式yyyy:MM:dd hh:mm:ss
            if (vUserID.Length > 0 && vAccount.Length > 0 && vPassword.Length > 0)
            {
                MxtService.ServicesSoapClient vWs         = new MxtService.ServicesSoapClient();
                MxtService.SendStatus         vSendStatus = vWs.DirectSend(vUserID, vAccount, vPassword, vPhone, vContent, vSendTime, 1, "1");

                if (vSendStatus.RetCode == MxtService.RetType7.Sucess)
                {
                    return(Json(new { result = "success" }));
                }
                if (vSendStatus.RetCode == MxtService.RetType7.Faild)
                {
                    return(Json(new { result = "error" }));
                }
            }

            return(Json(new { result = "error" }));
        }
Example #2
0
        public ActionResult SendSXTSms(string vUserID, string vAccount, string vPassword, string vSendTime, string vPhone, string vContent)
        {
            vSendTime = "";//定时发送,格式yyyy:MM:dd hh:mm:ss
            if (vUserID.Length > 0 && vAccount.Length > 0 && vPassword.Length > 0)
            {
                MxtService.ServicesSoapClient vWs = new MxtService.ServicesSoapClient();
                MxtService.SendStatus vSendStatus = vWs.DirectSend(vUserID, vAccount, vPassword, vPhone, vContent, vSendTime, 1, "1");

                if (vSendStatus.RetCode == MxtService.RetType7.Sucess)
                {
                   return   Json(new { result = "success" });
                }
                if (vSendStatus.RetCode == MxtService.RetType7.Faild)
                {
                   return   Json(new { result = "error" });
                }

            }

            return Json(new { result = "error" });
        }