修改地址
build / build-push (push) Successful in 40s

This commit is contained in:
wanghu
2026-09-09 17:39:30 +08:00
parent 20325bed00
commit 3ff9b48a19
3 changed files with 5 additions and 56 deletions
-1
View File
@@ -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 + "/";
+5 -2
View File
@@ -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";