diff --git a/routes/index.js b/routes/index.js index 8ef3598..5c2ecb0 100644 --- a/routes/index.js +++ b/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);