Feat:支持nsfwjs审查渠道

This commit is contained in:
MarSeventh
2025-06-22 22:50:24 +08:00
parent b5fcde1377
commit fc3629a1cf
46 changed files with 128 additions and 88 deletions

View File

@@ -110,10 +110,7 @@ async function deleteFile(env, fileId, cdnUrl, url) {
// S3 渠道的图片需要删除S3中对应的图片
if (img.metadata?.Channel === 'S3') {
const success = await deleteS3File(img);
if (!success) {
throw new Error('S3 Delete Failed');
}
await deleteS3File(img);
}
// 删除KV存储中的记录