Example #1
0
        public ActionResult SavePortalStyleSettings_Custom()
        {
            PortalStyleSettingsEntity args = RequestArgs <PortalStyleSettingsEntity>();

            if (args == null)
            {
                return(RespondResult(false, "参数无效。"));
            }

            args.Domain     = DomainContext.Domain.Id;
            args.AppId      = DomainContext.AppId;
            args.PortalMode = EnumPortalMode.Custom;
            _portalManager.SavePortalStyleSettings_Custom(DomainContext.Domain.Id, args);

            //确保保存设置后能立马在微信后台保存设置
            _domainPool.Refresh(UserContext.User.Domain);

            #region 操作日志

            _operatedLogManager.Create(new OperatedLogEntity()
            {
                Domain      = DomainContext.Domain.Id,
                AppId       = DomainContext.AppId,
                User        = UserContext.User.Id,
                IP          = Request.UserHostAddress,
                Module      = EnumModule.Portal,
                Description = "保存微主页设置"
            });

            #endregion

            return(RespondResult());
        }