|
|
|
@ -89,7 +89,7 @@ async function handle(url, uuid, areaName, htmlStr, cookie, userAgent) { |
|
|
|
|
console.debug(`${uuid};正在设置 Cookie:`, cookie, currentUrl); |
|
|
|
|
let call = superSetCookie.call(this, cookie, currentUrl, options, callback); |
|
|
|
|
// 设置标志可取标志
|
|
|
|
|
if (cookie.includes('YqQ7a3SgknV8P')) { |
|
|
|
|
if (cookie.includes('P=')) { |
|
|
|
|
window[uuid] = true |
|
|
|
|
} |
|
|
|
|
return call; |
|
|
|
@ -107,7 +107,7 @@ async function handle(url, uuid, areaName, htmlStr, cookie, userAgent) { |
|
|
|
|
let internalVMContext = dom.getInternalVMContext(); |
|
|
|
|
script.runInContext(internalVMContext, {timeout: 1000}); |
|
|
|
|
|
|
|
|
|
// 等待cookie 被设置
|
|
|
|
|
// 等待 cookie 被设置
|
|
|
|
|
for (let i = 0; i < 10; i++) { |
|
|
|
|
if (window[uuid]) { |
|
|
|
|
break; |
|
|
|
|