const { PrismaClient } = require('@prisma/client'); const prisma = new PrismaClient(); async function checkChapter() { const chapterId = 1162; const chapter = await prisma.bookChapter.findUnique({ where: { id: chapterId }, select: { id: true, title: true, content: true, wordCount: true, level: true, contentStatus: true, bookId: true, } }); console.log('\n📖 章节详情:\n'); console.log(`ID: ${chapter.id}`); console.log(`标题: ${chapter.title}`); console.log(`级别: ${chapter.level}`); console.log(`内容状态: ${chapter.contentStatus}`); console.log(`字数: ${chapter.wordCount}`); console.log(`书籍ID: ${chapter.bookId}`); if (chapter.content) { console.log(`\n📝 内容预览(前500字):\n`); console.log(chapter.content.substring(0, 500)); } else { console.log('\n❌ 内容为空!'); } await prisma.$disconnect(); } checkChapter().catch(console.error);