Beispiel #1
0
 public static string OriginalImage(object ImagePath)
 {
     if (ImagePath == null)
     {
         return(string.Empty);
     }
     return(BizUtils.GetConfig(Consts.KeyName.AdminServer.ToString()) + ImagePath.ToString());
 }
Beispiel #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/"));
     }
 }