妙手侦察:舰队技能档选择器已失效(真实表单已抓)、验证码改为强制、子账号不能发布 → 卡登录,待人工决策
This commit is contained in:
1 parent
8c60870aa0
commit
96cee1c206
5 files changed
+112
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { newPage, closePage, wait, listPages } from '/home/admin9webs/shein建品/sh_lib.mjs';
|
||||
import { SAN as S } from '/tmp/cdp3.mjs';
|
||||
// 先看有没有现成的妙手标签
|
||||
const pages = (await listPages()).filter(t=>/miaoshou|91miao/i.test(t.url));
|
||||
console.log('现有妙手标签:', pages.length, pages.map(t=>t.url.slice(0,60)).join(' | '));
|
||||
const c = pages.length ? null : await newPage('https://erp.91miaoshou.com/');
|
||||
if (c) await wait(12000);
|
||||
if (!c) { console.log('已有标签,跳过新开'); process.exit(0); }
|
||||
const o = await c.evalJS(`(()=>{
|
||||
const nav=[...document.querySelectorAll('a,li,div')].filter(e=>e.offsetParent!==null&&(e.innerText||'').trim().length>1&&(e.innerText||'').trim().length<8).map(e=>(e.innerText||'').trim());
|
||||
const uniq=[...new Set(nav)].slice(0,40);
|
||||
return JSON.stringify({title:document.title, href:location.href, hasLogin:!!document.querySelector('input[type=password]'), nav:uniq});})()`);
|
||||
console.log('页面:', S(String(o)).slice(0,900));
|
||||
try{ await c.shot('/tmp/ms1.jpg'); console.log('shot ok'); }catch(e){}
|
||||
await closePage(c); process.exit(0);
|
||||
Reference in new issue
Block a user