@@ -68,7 +68,6 @@ namespace YhCore.Service.Impl
|
||||
if (file == null || file.Length == 0)
|
||||
throw new DException("上传失败!");
|
||||
|
||||
if (appType.ToLower() == "noticemsg") appType = "notice";
|
||||
string dtStr = DateTime.Now.ToString("yyyyMMdd");
|
||||
string physicalDir = Path.Combine(StorageRoot(), appType, dtStr);
|
||||
string outFilePath = Config.FilePath + appType + "/" + dtStr + "/";
|
||||
|
||||
@@ -9,6 +9,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using Microsoft.IdentityModel.Logging;
|
||||
using Yh.Platform.Abstractions;
|
||||
using Yh.SchClass.OpenApi;
|
||||
using YhCore.Common.Config;
|
||||
@@ -1998,6 +1999,8 @@ namespace YhCore.Service.Impl
|
||||
public async Task<string> GetSignatureAsync(string schSerId, string userId)
|
||||
{
|
||||
var dir = Path.Combine(FileService.StorageRoot(), "Signature");
|
||||
|
||||
|
||||
if (!Directory.Exists(dir))
|
||||
Directory.CreateDirectory(dir);
|
||||
|
||||
@@ -2027,8 +2030,8 @@ namespace YhCore.Service.Impl
|
||||
string path = Path.Combine(dir, userId + ".txt");
|
||||
if (File.Exists(path))
|
||||
{
|
||||
string datestr = DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss");
|
||||
string newpath = Path.Combine(dir, userId + "_" + datestr + ".txt");
|
||||
string datestr = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
string newpath = Path.Combine(dir, userId + datestr + ".txt");
|
||||
File.Move(path, newpath);
|
||||
}
|
||||
return "ok";
|
||||
|
||||
Reference in New Issue
Block a user