Skip to content

Commit

Permalink
feat(google): 检测账号被 ban
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangsx committed Aug 29, 2024
1 parent e706583 commit bb7406f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/puppeteer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ export async function googleScreenHandle(page: Page, opt: GoogleMailAccount) {
await sleep(1000);
await page.click('c-wiz > div > div > div > div > div:nth-child(2)');
break;
case '/signin/v2/disabled/explanation':
throw new Error('account fk banned');
default:
throw new Error(`unknown pathname: ${pathname}`);
}
Expand Down

0 comments on commit bb7406f

Please sign in to comment.