|
@@ -911,8 +911,8 @@ namespace DataSharing.Host.Controllers
|
|
|
var businessFileDto = await SendFileData(file);
|
|
|
|
|
|
string strFileName = file.FileName;
|
|
|
- string strSuffix = strFileName.LastIndexOf(".") > 0 ? strFileName.Substring(strFileName.LastIndexOf(".")) : "";
|
|
|
-
|
|
|
+ string strSuffix = strFileName.LastIndexOf(".") > 0 ? strFileName.Substring(strFileName.LastIndexOf(".")+1) : "";
|
|
|
+ string strSubFileName = strFileName.LastIndexOf(".") > 0 ? strFileName.Substring(0, strFileName.LastIndexOf(".")) : strFileName;
|
|
|
// 新增文件到列表
|
|
|
var materialInfo = new DsGetCaseMaterialInfo()
|
|
|
{
|
|
@@ -920,7 +920,7 @@ namespace DataSharing.Host.Controllers
|
|
|
MaterialType = tmpCaseMaterialInfo.MaterialType,
|
|
|
CliengGuid = tmpCaseMaterialInfo.CliengGuid,
|
|
|
AreaCode = tmpCaseMaterialInfo.AreaCode,
|
|
|
- FileName = file.FileName,
|
|
|
+ FileName = strSubFileName,
|
|
|
Type = strSuffix.Trim('.'),
|
|
|
Additions = businessFileDto.id,
|
|
|
Path = businessFileDto.path,
|