master
刘东琪 9 months ago
parent c28590859d
commit 96b2eeaf26
  1. 4
      routes/index.js

@ -13,6 +13,7 @@ let store = new Store();
router.post('/rsCookie', async (req, res) => {
let start = new Date();
try {
console.log('request body------>', req.body)
let url = req.body['url'];
let areaName = req.body['areaName'];
let htmlStr = req.body['htmlBase64'];
@ -70,7 +71,6 @@ function loadJs(window, jsText) {
}
js += ";\n"
}
return js;
}
@ -105,7 +105,7 @@ async function handle(url, htmlStr, jsText, cookie, userAgent) {
browser(window, 'chrome');
// 加载js
let js = loadJs(window, jsText);
// console.log('js 加载--->', js)
console.log('js 加载--->', js)
// 执行 js
let script = new Script(js);

Loading…
Cancel
Save