public override void Submit_OnClick(object sender, EventArgs e) { if (Page.IsPostBack && Page.IsValid) { PublishmentSystemInfo.Additional.SiteMapGooglePath = SiteMapGooglePath.Text; PublishmentSystemInfo.Additional.SiteMapGoogleChangeFrequency = SiteMapGoogleChangeFrequency.SelectedValue; PublishmentSystemInfo.Additional.SiteMapGoogleIsShowLastModified = TranslateUtils.ToBool(SiteMapGoogleIsShowLastModified.SelectedValue); PublishmentSystemInfo.Additional.SiteMapGooglePageCount = TranslateUtils.ToInt(SiteMapGooglePageCount.Text); try { DataProvider.PublishmentSystemDao.Update(PublishmentSystemInfo); SeoManager.CreateSiteMapGoogle(PublishmentSystemInfo); Body.AddSiteLog(PublishmentSystemId, "生成谷歌站点地图"); SuccessMessage("谷歌站点地图生成成功!"); } catch (Exception ex) { FailMessage(ex, "谷歌站点地图生成失败!"); } } }