github-actions[bot] commited on
Commit
099eed7
·
1 Parent(s): bf4a03c

Update from GitHub Actions

Browse files
Files changed (1) hide show
  1. src/index.ts +24 -0
src/index.ts CHANGED
@@ -246,6 +246,30 @@ app.get('/genspark', async (c) => {
246
  // 可选:触发搜索/提交
247
  await gensparkPage.keyboard.press('Enter');
248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  // 执行脚本获取令牌
250
  const token = await gensparkPage.evaluate(() => {
251
  return new Promise((resolve, reject) => {
 
246
  // 可选:触发搜索/提交
247
  await gensparkPage.keyboard.press('Enter');
248
 
249
+
250
+ await fetch("https://td.doubleclick.net/td/ga/rul?tid=G-VL3SBJ0Y0F&gacid=334217393.1741091259&gtm=45je5330v9190289804za200&dma=0&gcd=13l3l3l3l1l1&npa=0&pscdl=noapi&aip=1&fledge=1&frm=0&tag_exp=102067808~102482433~102539968~102558064~102587591~102605417~102640600~102717422~102732003&z=302489313", {
251
+ "headers": {
252
+ "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
253
+ "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
254
+ "cache-control": "no-cache",
255
+ "pragma": "no-cache",
256
+ "priority": "u=0, i",
257
+ "sec-ch-ua": "\"Not(A:Brand\";v=\"99\", \"Microsoft Edge\";v=\"133\", \"Chromium\";v=\"133\"",
258
+ "sec-ch-ua-mobile": "?0",
259
+ "sec-ch-ua-platform": "\"Windows\"",
260
+ "sec-fetch-dest": "iframe",
261
+ "sec-fetch-mode": "navigate",
262
+ "sec-fetch-site": "cross-site",
263
+ "sec-fetch-storage-access": "active",
264
+ "sec-fetch-user": "?1",
265
+ "upgrade-insecure-requests": "1",
266
+ "cookie": "id=22111096e8f60001||t=1739928386|et=730|cs=002213fd488ca7c4e737d188c9; ar_debug=1"
267
+ },
268
+ "referrerPolicy": "no-referrer",
269
+ "body": null,
270
+ "method": "GET"
271
+ });
272
+
273
  // 执行脚本获取令牌
274
  const token = await gensparkPage.evaluate(() => {
275
  return new Promise((resolve, reject) => {