- 迁移57个老素材到新逻辑(本地zip + S3预览图) - 优化文件命名:SPU_作者_店铺_类型.zip - PSD文件单独存储,不打包进all.zip - 修复下载接口,优先使用本地zip文件 - 修复预览图重复问题 - 添加迁移脚本和验证脚本 - 更新文档和迁移计划 迁移统计: - 总素材数:77个 - 成功迁移:57个 - 新逻辑上传:18个 - 空记录:2个
12 lines
362 B
TypeScript
12 lines
362 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
const prisma = new PrismaClient();
|
|
|
|
prisma.material.findFirst({
|
|
where: { productModel: 'XG0176', materialType: '任务-详情' }
|
|
}).then(m => {
|
|
console.log('zipFilePath:', m?.zipFilePath);
|
|
console.log('zipFileSize:', m?.zipFileSize);
|
|
console.log('zipFileName:', m?.zipFileName);
|
|
prisma.$disconnect();
|
|
});
|