mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-07-13 00:11:23 +08:00
feat(background): add visual recognition task and refactor picture processing
This commit is contained in:
@@ -33,8 +33,10 @@ public class WebDavStorageProvider(IConfigService configService, ILogger<WebDavS
|
||||
|
||||
// 创建唯一的文件存储路径
|
||||
string currentDate = DateTime.Now.ToString("yyyy/MM");
|
||||
string ext = Path.GetExtension(fileName);
|
||||
string newFileName = $"{Guid.NewGuid()}{ext}";
|
||||
// fileName 参数现在是期望的最终文件名部分,例如 "guid.ext"
|
||||
// string ext = Path.GetExtension(fileName); // 旧的 fileName 是原始文件名,现在 fileName 是目标文件名
|
||||
// string newFileName = $"{Guid.NewGuid()}{ext}"; // 旧逻辑
|
||||
string newFileName = fileName; // 新逻辑
|
||||
string relativePath = $"{basePath}/{currentDate}/{newFileName}";
|
||||
|
||||
// 确保目录存在
|
||||
|
||||
Reference in New Issue
Block a user