コード例 #1
0
ファイル: SetController.cs プロジェクト: qq550723504/zone
        public ActionResult SMS(SMSModel model)
        {
            if (ModelState.IsValid)
            {
                SMSConfigInfo smsConfigInfo = BMAConfig.SMSConfig;

                smsConfigInfo.Url = model.Url;
                smsConfigInfo.UserName = model.UserName;
                smsConfigInfo.Password = model.Password;
                smsConfigInfo.FindPwdBody = model.FindPwdBody;
                smsConfigInfo.SCVerifyBody = model.SCVerifyBody;
                smsConfigInfo.SCUpdateBody = model.SCUpdateBody;
                smsConfigInfo.WebcomeBody = model.WebcomeBody;

                BMAConfig.SaveSMSConfig(smsConfigInfo);
                SMSes.ResetSMS();
                AddMallAdminLog("修改短信设置");
                return PromptView(Url.Action("sms"), "修改短信设置成功");
            }
            return View(model);
        }
コード例 #2
0
ファイル: SetController.cs プロジェクト: qq550723504/zone
        public ActionResult SMS()
        {
            SMSConfigInfo smsConfigInfo = BMAConfig.SMSConfig;

            SMSModel model = new SMSModel();
            model.Url = smsConfigInfo.Url;
            model.UserName = smsConfigInfo.UserName;
            model.Password = smsConfigInfo.Password;
            model.FindPwdBody = smsConfigInfo.FindPwdBody;
            model.SCVerifyBody = smsConfigInfo.SCVerifyBody;
            model.SCUpdateBody = smsConfigInfo.SCUpdateBody;
            model.WebcomeBody = smsConfigInfo.WebcomeBody;

            return View(model);
        }