public ReturnValue moduleEdit(string moduleName, string dirName, int type, double saveDataType, string custom, int watermark, int thumbnailWidth = 0, int thumbnailHeight = 0, int thumbnailForce = 0, double id = 0, int saveRemoteImages = 0, int inherit = 0, string _domainName = "", string domainName = "", string keyword = "", string info = "", int titleRepeat = 0)
        {
            ModuleInfo moduleInfo = new ModuleInfo();

            moduleInfo.id           = id;
            moduleInfo.moduleName   = moduleName;
            moduleInfo.dirName      = dirName;
            moduleInfo.type         = type == 1;
            moduleInfo.saveDataType = saveDataType;

            moduleInfo.custom           = custom;
            moduleInfo.watermark        = watermark;
            moduleInfo.thumbnailWidth   = thumbnailWidth;
            moduleInfo.thumbnailHeight  = thumbnailHeight;
            moduleInfo.thumbnailForce   = thumbnailForce;
            moduleInfo.saveRemoteImages = saveRemoteImages;
            moduleInfo.inherit          = inherit;
            moduleInfo._domainName      = _domainName;
            moduleInfo.domainName       = domainName;
            moduleInfo.keyword          = keyword;
            moduleInfo.info             = info;
            moduleInfo.titleRepeat      = titleRepeat;

            ReturnValue err = new ReturnValue();
            Permissions p   = this.loginInfo.value.getModulePermissions(moduleInfo.id);

            if (!p.all)
            {
                err.errNo  = -1;
                err.errMsg = "没有编辑该模块的权限";
                return(err);
            }

            err = ModuleClass.edit(moduleInfo, this.loginInfo.value);
            Config.loadDomain();
            return(err);
        }