Exemplo n.º 1
0
        /// <summary>
        /// 获得短信通道列表
        /// </summary>
        /// <returns></returns>
        public string GetSmsChannel()
        {
            var smsChannel = new SmsChannelControl();
            var oList      = smsChannel.GetChannel();

            return(CommonLib.Helper.JsonSerializeObject(oList));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获得通道余额信息
        /// </summary>
        /// <returns></returns>
        public string GetChannelBalance()
        {
            var sResult   = "-1";
            var channelId = Request["channelid"];

            if (channelId != null && channelId.ToString() != "")
            {
                var smsChannel = new SmsChannelControl();
                sResult = smsChannel.GetChannelBalance(Convert.ToInt32(channelId));
            }
            return(sResult);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 更新后台回访通道设置
        /// </summary>
        /// <returns></returns>
        public string SetRevisitChannel()
        {
            string sResult = "-1";
            string chName  = Request["chname"].ToString().Trim();
            int    chId    = Convert.ToInt32(Request["chid"].ToString().Trim());

            if (chId > 0)
            {
                var smsChannel = new SmsChannelControl();
                var iResult    = smsChannel.SetRevisitChannel(chName, chId);
                if (iResult == 1)
                {
                    sResult = "1";
                }
            }
            return(sResult);
        }