Exemplo n.º 1
0
 /// <summary>
 /// 返回首页首页数据
 /// </summary>
 /// <returns></returns>
 public string IDate()
 {
     try
     {
         string MyUrl  = "http://" + this.GetDoMain() + ClassBll.GetIndexTemplate(); //拼接后的地址
         string MyHtml = ROYcms.Common.GetUrlText.GetText(MyUrl, EncodIng);
         return(MyHtml);
     }
     catch
     {
         new ROYcms.Sys.BLL.ROYcms_Log().InsertSystemLog("5", "获取首页数据失败", "获取首页数据失败");//写入日志
         return(null);
     }
 }