예제 #1
0
 /// <summary>
 /// 得到文件名
 /// </summary>
 /// <returns></returns>
 public virtual string GetFullFileName(CommodityEntity commodity)
 {
     if (!string.IsNullOrEmpty(commodity.Password))
     {
         return("/Images/lock.png");
     }
     return(string.Format("{0}?v={1}", commodity.GetFullFileName(commodity.FileName, "l"), DateTime.Now.Ticks));
 }
예제 #2
0
 /// <summary>
 /// 得到文件名
 /// </summary>
 /// <returns></returns>
 public virtual string GetFullFileName(CommodityEntity commodity)
 {
     if (!string.IsNullOrEmpty(commodity.Password))
     {
         return(string.Format("{0}/Images/lock.png", Configuration.ConfigurationManager.GetSetting <string>("CloudSiteMobileUrl")));
     }
     return(string.Format("{0}?v={1}", commodity.GetFullFileName(commodity.FileName, "i"), DateTime.Now.Ticks));
 }