Spaces:
Running
Running
github-actions[bot]
commited on
Commit
·
fe5c268
1
Parent(s):
72dadb8
Update from GitHub Actions
Browse files- src/index.ts +2 -2
src/index.ts
CHANGED
@@ -194,13 +194,13 @@ app.get('/genspark', async (c) => {
|
|
194 |
}
|
195 |
const gensparkPage = await gensparkContext.newPage()
|
196 |
try {
|
197 |
-
await gensparkPage.waitForTimeout(
|
198 |
//刷新页面以确保获取新令牌
|
199 |
await gensparkPage.goto('https://www.genspark.ai/agents?type=moa_chat', {
|
200 |
waitUntil: 'networkidle',
|
201 |
timeout: 3600000
|
202 |
})
|
203 |
-
await gensparkPage.waitForTimeout(
|
204 |
// 执行脚本获取令牌
|
205 |
const token = await gensparkPage.evaluate(() => {
|
206 |
return new Promise((resolve, reject) => {
|
|
|
194 |
}
|
195 |
const gensparkPage = await gensparkContext.newPage()
|
196 |
try {
|
197 |
+
await gensparkPage.waitForTimeout(1000)
|
198 |
//刷新页面以确保获取新令牌
|
199 |
await gensparkPage.goto('https://www.genspark.ai/agents?type=moa_chat', {
|
200 |
waitUntil: 'networkidle',
|
201 |
timeout: 3600000
|
202 |
})
|
203 |
+
await gensparkPage.waitForTimeout(1000)
|
204 |
// 执行脚本获取令牌
|
205 |
const token = await gensparkPage.evaluate(() => {
|
206 |
return new Promise((resolve, reject) => {
|