github-actions[bot]
commited on
Commit
·
9657167
1
Parent(s):
cc874b6
Update from GitHub Actions
Browse files
functions/api/mail/auth.ts
CHANGED
@@ -141,7 +141,7 @@ export const onRequest = async (context: RouteContext): Promise<Response> => {
|
|
141 |
//同意授权
|
142 |
try {
|
143 |
// 等待同意授权页面,如果超时5秒则跳过
|
144 |
-
await page.waitForURL("https://account.live.com/Consent/**", { timeout:
|
145 |
await page.click('button[type="submit"][data-testid="appConsentPrimaryButton"]');
|
146 |
} catch (error) {
|
147 |
// 如果超时或页面未出现,直接继续执行
|
|
|
141 |
//同意授权
|
142 |
try {
|
143 |
// 等待同意授权页面,如果超时5秒则跳过
|
144 |
+
await page.waitForURL("https://account.live.com/Consent/**", { timeout: 10000 })
|
145 |
await page.click('button[type="submit"][data-testid="appConsentPrimaryButton"]');
|
146 |
} catch (error) {
|
147 |
// 如果超时或页面未出现,直接继续执行
|