妙手:子账号报「子账号不存在」(今晨曾登录成功)→ 账号侧状态变化,建议改用主账号(本来也才能发布)
This commit is contained in:
1 parent
3f60416e9c
commit
e6048d50cc
2 files changed
+31
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { listPages, wait } from '/home/admin9webs/shein建品/sh_lib.mjs';
|
||||
import { CDP, SAN as S } from '/tmp/cdp3.mjs';
|
||||
const ps=(await listPages()).filter(x=>/91miaoshou/i.test(x.url));
|
||||
console.log('妙手标签:', ps.length, ps.map(p=>p.url.slice(0,60)).join(' | '));
|
||||
if(!ps.length) process.exit(0);
|
||||
const c=await CDP.connect(ps[ps.length-1].webSocketDebuggerUrl);
|
||||
await c.send('Runtime.enable'); await wait(1200);
|
||||
const o=await c.evalJS(`(()=>{
|
||||
const txt=(document.body.innerText||'').replace(/\\s+/g,' ');
|
||||
const errs=txt.match(/.{0,10}(不存在|错误|不正确|锁定|失败).{0,26}/g);
|
||||
const ins=[...document.querySelectorAll('input')].filter(e=>e.offsetParent!==null).map(e=>({ph:e.placeholder||'', v:String(e.value||'').slice(0,20)}));
|
||||
return JSON.stringify({href:location.href, errs:(errs||[]).slice(0,4), ins});})()`);
|
||||
console.log('状态:', S(String(o)).slice(0,600));
|
||||
process.exit(0);
|
||||
Reference in new issue
Block a user