Sfoglia il codice sorgente

修改api学生信息照片接口

新疆警官学校中职
liangkun 2 anni fa
parent
commit
d6891792c8
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs

+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Arrangelesson.cs Vedi File

@@ -180,7 +180,12 @@ namespace Learun.Application.WebApi.Modules
var annfile = annexesFileIbll.GetEntityByFolderId(item.Photo);
if (annfile != null && annfile.F_FilePath != null)
{
item.Photo = webrootpath + item.Photo.Substring(item.Photo.IndexOf("Resource") - 1);
if (annfile.F_FilePath.IndexOf("Resource") != -1)
{
item.Photo = webrootpath + annfile.F_FilePath.Substring(annfile.F_FilePath.IndexOf("Resource") - 1);
}
else
item.Photo = "";
}
else
item.Photo = "";


Caricamento…
Annulla
Salva