feat(SystemSetting): 增加图片扩展名配置项并优化图片判断逻辑

- 在 appsettings.json 中添加 ImageExtensions 配置项,用于指定允许的图片扩展名
- 在 SystemSetting 模型中添加 ImageExtensions 属性
- 优化 Utils.cs 中的 IsImageFile 方法,支持从配置中读取图片扩展名列表
- 新增 TODO 列表,包含项目优化建议和改进任务
This commit is contained in:
jonah.fu
2025-08-14 18:22:51 +08:00
parent a57211677d
commit 7ae5d3e885
4 changed files with 50 additions and 1 deletions
+4
View File
@@ -23,6 +23,10 @@ namespace COMCMS.Web.Models
/// </summary>
public string MediaAllowedExtensions { get; set; }
/// <summary>
/// 图片文件扩展名(用于判断是否为图片)
/// </summary>
public string ImageExtensions { get; set; }
/// <summary>
/// JWT验证的密钥
/// </summary>
public string JwtSecret { get; set; }