コード例 #1
0
        /// <summary>
        /// 获得回访短信通道设置信息
        /// </summary>
        /// <returns></returns>
        public string GetRevisitChannel()
        {
            var smsChannel = new SmsChannelBLL();
            var oInfo      = smsChannel.GetSysChannelInfo();

            return(CommonLib.Helper.JsonSerializeObject(oInfo));
        }
コード例 #2
0
ファイル: SmsChannel.cs プロジェクト: aleczhminr/systemManage
        /// <summary>
        /// 更新后台回访通道设置
        /// </summary>
        /// <param name="channelName">通道名称</param>
        /// <param name="channelId">通道ID</param>
        /// <returns></returns>
        public int SetRevisitChannel(string channelName, int channelId)
        {
            //运营商绑定方式
            int iResult    = -1;
            var smsChannel = new SmsChannelBLL();

            if (channelName == "Return_mobile")
            {
                channelName = "group_mobile";
            }
            else if (channelName == "Return_unicom")
            {
                channelName = "group_unicom";
            }
            else if (channelName == "Return_telecom")
            {
                channelName = "group_telecom";
            }

            bool bResult = smsChannel.SetSysSmsChannelOption(channelName, channelId);

            if (bResult)
            {
                //通知短信服务程序切换更新通道信息
                string smsReloadUrl = "http://127.0.0.1:10080/date.aspx?dts=reload";
                CommonLib.Helper.SendHttpGet(smsReloadUrl, null);
                iResult = 1;
            }

            return(iResult);
        }
コード例 #3
0
        /// <summary>
        /// 获得短信通道发送条数
        /// </summary>
        /// <returns></returns>
        public int GetChannelSum()
        {
            int chId    = Convert.ToInt32(Request["chid"].ToString().Trim());
            var smsBll  = new SmsChannelBLL();
            var iResult = smsBll.GetChannelSum(chId);

            return(iResult);
        }
コード例 #4
0
ファイル: SmsChannel.cs プロジェクト: aleczhminr/systemManage
        /// <summary>
        /// 更新运营商绑定通道设置
        /// </summary>
        /// <param name="channelName">通道名称</param>
        /// <param name="channelId">通道ID</param>
        /// <returns></returns>
        public int SetChannel(string channelName, int channelId)
        {
            //运营商绑定方式
            int  iResult    = -1;
            var  smsChannel = new SmsChannelBLL();
            bool bResult    = smsChannel.SetSmsChannelOption(channelName, channelId);

            if (bResult)
            {
                //通知短信服务程序切换更新通道信息
                string smsReloadUrl = "http://web.i200.cn:30018/date.aspx?dts=reload";
                CommonLib.Helper.SendHttpGet(smsReloadUrl, null);
                iResult = 1;
            }

            return(iResult);
        }
コード例 #5
0
        public static string GetChannelTest(string strContent, string phoneNum, int userCnt, int channelId, int smsFlag)
        {
            SmsChannelBLL channelBll = new SmsChannelBLL();

            return(channelBll.GetChannelTest(strContent, phoneNum, userCnt, channelId, smsFlag));
        }