Пример #1
0
 public static string OriginalImage(object ImagePath)
 {
     if (ImagePath == null)
     {
         return(string.Empty);
     }
     return(BizUtils.GetConfig(Consts.KeyName.AdminServer.ToString()) + ImagePath.ToString());
 }
Пример #2
0
 public static string ThumbImage(object ImagePath)
 {
     if (ImagePath == null)
     {
         return(string.Empty);
     }
     if (ImagePath.ToString().StartsWith("/"))
     {
         return(BizUtils.GetConfig(Consts.KeyName.AdminServer.ToString()) + ImagePath.ToString().ToLower().Replace("uploads/", "uploads/_thumbs/"));
     }
     else
     {
         return(BizUtils.GetConfig(Consts.KeyName.AdminServer.ToString()) + ImagePath.ToString().ToLower().Replace("uploads/", "/uploads/_thumbs/"));
     }
 }