瀏覽代碼

修改api学生信息照片接口

新疆警官学校中职
liangkun 2 年之前
父節點
當前提交
d6891792c8
共有 1 個檔案被更改,包括 6 行新增1 行删除
  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 查看文件

@@ -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…
取消
儲存