Beispiel #1
0
        public ActionResult EamilSetting(int TimeStamp)
        {
            ProfilesInfo infoSenderName         = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件人显示名, true);
            ProfilesInfo infoSenderHostName     = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮件主机, true);
            ProfilesInfo infoSenderEmailAddress = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱地址, true);
            ProfilesInfo infoSenderEmailPwd     = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱密码, true);
            ProfilesInfo infoSenderEmailPort    = ProfilesBLL.Get(ProfilesInfo.EmailItem.发件邮箱端口, true);
            ProfilesInfo infoReplyAddress       = ProfilesBLL.Get(ProfilesInfo.EmailItem.回复地址, true);
            ProfilesInfo infoReplyDisplayName   = ProfilesBLL.Get(ProfilesInfo.EmailItem.回复时显示名, true);

            infoSenderName.Value         = Function.GetRequestString("SenderName");
            infoSenderHostName.Value     = Function.GetRequestString("SenderHostName");
            infoSenderEmailAddress.Value = Function.GetRequestString("SenderEmailAddress");
            infoSenderEmailPwd.Value     = Function.GetRequestString("SenderEmailPwd");
            infoSenderEmailPort.Value    = Function.GetRequestString("SenderEmailPort");
            infoReplyAddress.Value       = Function.GetRequestString("ReplyAddress");
            infoReplyDisplayName.Value   = Function.GetRequestString("ReplyDisplayName");


            ProfilesBLL.Edit(infoSenderName);
            ProfilesBLL.Edit(infoSenderHostName);
            ProfilesBLL.Edit(infoSenderEmailAddress);
            ProfilesBLL.Edit(infoSenderEmailPwd);
            ProfilesBLL.Edit(infoSenderEmailPort);
            ProfilesBLL.Edit(infoReplyAddress);
            ProfilesBLL.Edit(infoReplyDisplayName);
            return(Content(MVCScriptHelper.AlertRefresh("更新成功", null)));
        }
Beispiel #2
0
        public ActionResult WechatSubscribeContent(ProfilesInfo info)
        {
            ProfilesInfo infoExist = ProfilesBLL.GetList(p => p.ID == info.ID).FirstOrDefault();

            infoExist.Value = info.Value;
            ProfilesBLL.Edit(infoExist);
            return(Content(MVCScriptHelper.AlertRefresh("更新成功", null)));
        }
Beispiel #3
0
        public ActionResult InportSetting(int TimeStamp)
        {
            ProfilesInfo DefaultRuleIDWhenInport = ProfilesBLL.Get(ProfilesInfo.InportSetting.DefaultRuleIDWhenInport, true);

            DefaultRuleIDWhenInport.Value = Function.GetRequestString("DefaultRuleIDWhenInport");


            ProfilesBLL.Edit(DefaultRuleIDWhenInport);
            return(Content(MVCScriptHelper.AlertRefresh("更新成功", null)));
        }
Beispiel #4
0
        public ActionResult Edit(int TimeStamp)
        {
            ProfilesInfo ifnoa                 = ProfilesBLL.Get("手机购买时间有效小时数", true);
            ProfilesInfo infoAiQiYiRate        = ProfilesBLL.Get("AiQiYiRate", true);
            ProfilesInfo infoEnableAgenterName = ProfilesBLL.Get("EnableAgenterName", true);

            ifnoa.Value                 = Function.GetRequestString("Txtinfoa");
            infoAiQiYiRate.Value        = Function.GetRequestString("TxtinfoAiQiYiRate");
            infoEnableAgenterName.Value = Function.GetRequestString("TxtinfoEnableAgenterName");

            ProfilesBLL.Edit(ifnoa);
            ProfilesBLL.Edit(infoAiQiYiRate);
            ProfilesBLL.Edit(infoEnableAgenterName);
            return(Content(MVCScriptHelper.AlertRefresh("更新成功", null)));
        }
Beispiel #5
0
        public ActionResult MainSetting(int TimeStamp)
        {
            ProfilesInfo EnableUpdateTimeBegin    = ProfilesBLL.Get("EnableUpdateTimeBegin", true);
            ProfilesInfo EnableUpdateTimeEnd      = ProfilesBLL.Get("EnableUpdateTimeEnd", true);
            ProfilesInfo EnableUpdateTimeInterval = ProfilesBLL.Get("EnableUpdateTimeInterval", true);

            EnableUpdateTimeBegin.Value    = Function.GetRequestString("EnableUpdateTimeBegin");
            EnableUpdateTimeEnd.Value      = Function.GetRequestString("EnableUpdateTimeEnd");
            EnableUpdateTimeInterval.Value = Function.GetRequestString("EnableUpdateTimeInterval");


            ProfilesBLL.Edit(EnableUpdateTimeBegin);
            ProfilesBLL.Edit(EnableUpdateTimeEnd);
            ProfilesBLL.Edit(EnableUpdateTimeInterval);
            return(Json(new APIJson(0, "更新成功")));
        }
Beispiel #6
0
        public ActionResult UserMenu(string menuJson)
        {
            ProfilesInfo info = ProfilesBLL.Get(ProfilesInfo.Wechat.MenuJson);

            info.Value = menuJson;
            ProfilesBLL.Edit(info);

            string URL   = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=";
            string token = WeiXin.APIClient.WechatService.GetAccessTonken();

            string msg = "Token={0};<br/>result={1}";

            if (!string.IsNullOrEmpty(token))
            {
                if (token.Length < 10)
                {
                    return(Content("token有误"));
                }
            }
            var result = DataHelper.PostHttpData(URL + token, menuJson);

            return(Content(string.Format(msg, token, result)));
        }