Browse Source

修改api学生信息照片接口

新疆警官学校中职
liangkun 2 years ago
parent
commit
d6891792c8
1 changed files with 6 additions and 1 deletions
  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 View 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 = "";


Loading…
Cancel
Save