using Learun.Util; using System.Web.Mvc; namespace Learun.Application.Web.Areas.LR_WebChatModule.Controllers { /// /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2018 北京泉江科技有限公司 /// 创建人:陈彬彬 /// 日 期:2017.04.01 /// 描 述:企业号设置 /// public class TokenController : MvcControllerBase { #region 视图功能 /// /// 企业号管理 /// /// [HttpGet] public ActionResult Index() { ViewBag.CorpId = Config.GetValue("CorpId"); ViewBag.CorpSecret = Config.GetValue("CorpSecret"); return View(); } #endregion #region 提交数据 /// /// 保存 /// /// 企业号CorpID /// 管理组凭证密钥 /// [HttpPost] [ValidateAntiForgeryToken] [AjaxOnly] public ActionResult SaveForm(string CorpId, string CorpSecret) { Config.SetValue("CorpId", CorpId); Config.SetValue("CorpSecret", CorpSecret); return Success("操作成功。"); } #endregion } }