feat(*): 画布助手 - 新增 Live2D 配置导入与模型渲染支持

This commit is contained in:
ddCat committed 2026-09-21 14:11:29 +08:00
1 parent 4f9e79f67f
commit 4e0b0a9256
40 files changed
+1668 -59

No files matched your search

+4 -1
View File
@@ -500,7 +500,10 @@ func (s *Service) storeResource(userID string, kind string, fileName string, mim
return nil, false, resourceUploadInProgress()
}
now := time.Now()
kind = normalizeResourceKind(kind, mimeType)
// Live2D is reserved for the administrator's validated local import path.
if !(forceLocal && kind == "live2d") {
kind = normalizeResourceKind(kind, mimeType)
}
var setting ossSettingValue
var storageSettingID string
var useOSS bool