1、增加图片视频

2、优化代码结构
3、up主下载分类逻辑可配置
This commit is contained in:
jianzhichu
2025-11-23 00:46:41 +08:00
parent 7cacdaedd4
commit 8cef13c926
51 changed files with 1604 additions and 1667 deletions
@@ -3,7 +3,7 @@
namespace dy.net.model
{
[SqlSugar.SugarTable(TableName = "login_user_info")]
public class LoginUserInfo
public class AdminUserInfo
{
public string UserName { get; set;}
public string Password { get; set; }
+10 -1
View File
@@ -25,6 +25,15 @@ namespace dy.net.model
/// 博主视频是否 直接用标题做文件名,不另外加一层文件夹
/// </summary>
public bool UperUseViedoTitle { get; set; }
/// <summary>
/// 是否下载图片视频
/// </summary>
public bool DownImageVideo { get; set; }
/// <summary>
/// 日志保留天数,防止容器日志太多,默认10天
/// </summary>
public int KeepLogDay { get; set; } = 10;
}
}
@@ -5,7 +5,7 @@ using SqlSugar;
namespace dy.net.model
{
[SugarTable(TableName = "dy_cookie")]
public class DyUserCookies
public class DouyinUserCookie
{
[SugarColumn(IsPrimaryKey = true)]
@@ -77,32 +77,39 @@ namespace dy.net.model
public string UpSavePath { get; set; }
/// <summary>
/// 图片视频存储路径
/// </summary>
[SugarColumn(Length = 500, IsNullable = true)]
public string ImgSavePath { get; set; }
[SugarColumn(IsIgnore = true)]
public List<DyUpSecUserIdDto> UpSecUserIdsJson
public List<DouyinUpSecUserIdDto> UpSecUserIdsJson
{
get
{
// 反序列化逻辑(保持不变)
if (string.IsNullOrWhiteSpace(UpSecUserIds))
{
return new List<DyUpSecUserIdDto>();
return new List<DouyinUpSecUserIdDto>();
}
try
{
return JsonConvert.DeserializeObject<List<DyUpSecUserIdDto>>(UpSecUserIds);
return JsonConvert.DeserializeObject<List<DouyinUpSecUserIdDto>>(UpSecUserIds);
}
catch (JsonSerializationException ex)
{
// 日志记录(按需添加)
// Logger.Error($"反序列化失败:{ex.Message},原始值:{UpSecUserIds}");
return new List<DyUpSecUserIdDto>();
return new List<DouyinUpSecUserIdDto>();
}
catch (Exception ex)
{
// 日志记录(按需添加)
// Logger.Error($"处理异常:{ex.Message}");
return new List<DyUpSecUserIdDto>();
return new List<DouyinUpSecUserIdDto>();
}
}
set
@@ -4,7 +4,7 @@ namespace dy.net.model
{
[SugarTable(TableName = "dy_collect_video")]
public class DyCollectVideo
public class DouyinVideo
{
/// <summary>
///