lix02 commited on
Commit
6339b89
Β·
verified Β·
1 Parent(s): 3f3e003

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -68,7 +68,7 @@ app.get('/*', async (req, res) => {
68
  res.send(result.htmlContent); // 发送 htmlContent ηš„ηΊ―ζ–‡ζœ¬ε“εΊ”
69
  } else if (req.path === '/core') {
70
  // ε…ˆζ‰Ύεˆ°εŒ…ε«ε‰εŽε­—η¬¦ηš„ε­—η¬¦δΈ²
71
- const coreContent = result.htmlContent.match(/\[CDATA\[(\(function\(n,t\)\{onload=function\(\)\{_G\.BPT=new Date;n&&n\(\)\{.*?\/\/\]\]\//s);
72
  if (coreContent) {
73
  // εˆ ι™€ζŽ‰δΈιœ€θ¦ηš„ιƒ¨εˆ†
74
  let extractedString = coreContent[0];
@@ -78,7 +78,7 @@ app.get('/*', async (req, res) => {
78
  res.send(extractedString); // ε‘ι€ζε–εŽηš„ε­—η¬¦δΈ²
79
  } else {
80
  res.set('Content-Type', 'text/plain');
81
- res.send('ζ²‘ζœ‰ζ‰Ύεˆ°εŒΉι…ηš„ε­—η¬¦δΈ²');
82
  }
83
  } else {
84
  res.set('Content-Type', 'text/plain');
 
68
  res.send(result.htmlContent); // 发送 htmlContent ηš„ηΊ―ζ–‡ζœ¬ε“εΊ”
69
  } else if (req.path === '/core') {
70
  // ε…ˆζ‰Ύεˆ°εŒ…ε«ε‰εŽε­—η¬¦ηš„ε­—η¬¦δΈ²
71
+ const coreContent = result.htmlContent.match(/\[CDATA\[\(function\(n,t\)\{onload=function\(\)\{_G\.BPT=new Date;n&&n\(\)\{.*?\}\}\}\)\]\]\//s);
72
  if (coreContent) {
73
  // εˆ ι™€ζŽ‰δΈιœ€θ¦ηš„ιƒ¨εˆ†
74
  let extractedString = coreContent[0];
 
78
  res.send(extractedString); // ε‘ι€ζε–εŽηš„ε­—η¬¦δΈ²
79
  } else {
80
  res.set('Content-Type', 'text/plain');
81
+ res.send('ζ²‘ζœ‰ζ‰Ύεˆ°CoreεŒΉι…ηš„ε­—η¬¦δΈ²');
82
  }
83
  } else {
84
  res.set('Content-Type', 'text/plain');