Ver a proveniência

Merge branch '长阳分支中职' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 长阳分支中职

临城职教中职
zhangli há 2 anos
ascendente
cometimento
45ead6e3a3
1 ficheiros alterados com 5 adições e 2 eliminações
  1. +5
    -2
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs

+ 5
- 2
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs Ver ficheiro

@@ -357,10 +357,12 @@ namespace Learun.Application.WebApi.Modules
{
var files = (List<HttpFile>)this.Context.Request.Files;
var folderId = this.GetReq<FileModel>().folderId;//文件夹id=新生id
var name = this.GetReq<FileModel>().name;//文件夹id=新生id


string filePath = Config.GetValue("AnnexesFile");
string uploadDate = DateTime.Now.ToString("yyyyMMdd");
string FileEextension = Path.GetExtension(files[0].Name);
string FileEextension = name;
string fileGuid = Guid.NewGuid().ToString();

string virtualPath = string.Format("{0}/{1}/{2}/{3}{4}", filePath, userInfo.userId, uploadDate, fileGuid, FileEextension);
@@ -381,7 +383,7 @@ namespace Learun.Application.WebApi.Modules
//文件信息写入数据库
fileAnnexesEntity.F_Id = fileGuid;
fileAnnexesEntity.F_FolderId = folderId;
fileAnnexesEntity.F_FileName = files[0].Name;
fileAnnexesEntity.F_FileName = name;
fileAnnexesEntity.F_FilePath = virtualPath;
fileAnnexesEntity.F_FileSize = files[0].Value.Length.ToString();
fileAnnexesEntity.F_FileExtensions = FileEextension;
@@ -496,6 +498,7 @@ namespace Learun.Application.WebApi.Modules
public class FileModel
{
public string folderId { get; set; }
public string name { get; set; }
public string id { get; set; }
}
}

Carregando…
Cancelar
Guardar