|
@@ -234,10 +234,12 @@ namespace DataSharing.Host.Controllers
|
|
|
var resultData = Newtonsoft.Json.JsonConvert.DeserializeObject<BusinessFileResponse>(result);
|
|
|
if (resultData != null && resultData.code == 0)
|
|
|
{
|
|
|
+ string strSuffix = fileName.LastIndexOf(".") > 0 ? fileName.Substring(fileName.LastIndexOf(".") + 1) : "";
|
|
|
+ string strSubFileName = fileName.LastIndexOf(".") > 0 ? fileName.Substring(0, fileName.LastIndexOf(".")) : fileName;
|
|
|
fileDto = new()
|
|
|
{
|
|
|
- Name = fileName,
|
|
|
- Type = type,
|
|
|
+ Name = strSubFileName,
|
|
|
+ Type = strSuffix,
|
|
|
Classify = classify,
|
|
|
Additions = resultData.result.id,
|
|
|
Path = resultData.result.path
|