XWX-AI Claude Opus 4.6 commited on
Commit
e550365
·
1 Parent(s): fb94a6b

fix: change htmlToUse from const to let for future reassignment compatibility

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -196,7 +196,7 @@ app.post('/api/generate_pdf', async (req, res) => {
196
  console.log(`[PDF-GEN] [${getElapsed()}] 已移除 loading="lazy" 属性`);
197
 
198
  // 使用处理后的 HTML
199
- const htmlToUse = htmlToProcess;
200
 
201
  const baseWaitTime = imgCount > 0 ? Math.min(500 + imgCount * 400, 6000) : 500;
202
  const sizeWaitTime = imgSizeMB > 0 ? Math.min(imgSizeMB * 100, 3000) : 0;
 
196
  console.log(`[PDF-GEN] [${getElapsed()}] 已移除 loading="lazy" 属性`);
197
 
198
  // 使用处理后的 HTML
199
+ let htmlToUse = htmlToProcess;
200
 
201
  const baseWaitTime = imgCount > 0 ? Math.min(500 + imgCount * 400, 6000) : 500;
202
  const sizeWaitTime = imgSizeMB > 0 ? Math.min(imgSizeMB * 100, 3000) : 0;