const { PrismaClient } = require('@prisma/client'); const p = new PrismaClient(); (async () => { const b = await p.book.findUnique({ where: { id: 80 }, include: { chapters: true } }); console.log(`book 80 lang=${b.targetLanguage} stage=${b.genStage} chapters=${b.chapters.length}`); for (const c of b.chapters) { const sample = (c.content || '').substring(0, 300).replace(/\n/g, ' / '); const hasCN = /[一-鿿]/.test(c.content || ''); console.log(` ch#${c.id} [${c.genStage}] audio=${c.audioUrl ? 'yes' : 'NO'}`); console.log(` ${sample}`); console.log(` hasChinese: ${hasCN ? '❌ 是(有中文!)' : '✅ 否(纯英文)'}`); } await p.$disconnect(); })();