clash-linux commited on
Commit
cc070c0
·
verified ·
1 Parent(s): 5fa5930

Upload 14 files

Browse files
Files changed (1) hide show
  1. src/lightweight-client.js +1 -2
src/lightweight-client.js CHANGED
@@ -239,7 +239,6 @@ async function streamNotionResponse(notionRequestBody) {
239
  let responseReceived = false;
240
 
241
  try {
242
- const notionApiUrl = getNotionApiUrl(currentCookieData.userId);
243
  const notionCookie = cookieManager.getCookieString(currentCookieData.userId);
244
 
245
  // 配置 got-scraping
@@ -265,7 +264,7 @@ async function streamNotionResponse(notionRequestBody) {
265
  logger.info(`使用代理: ${PROXY_URL}`);
266
  }
267
 
268
- const responseStream = gotScraping(notionApiUrl, options);
269
 
270
  // 监听流事件
271
  fetchNotionResponse(stream, responseStream, timeoutId);
 
239
  let responseReceived = false;
240
 
241
  try {
 
242
  const notionCookie = cookieManager.getCookieString(currentCookieData.userId);
243
 
244
  // 配置 got-scraping
 
264
  logger.info(`使用代理: ${PROXY_URL}`);
265
  }
266
 
267
+ const responseStream = gotScraping(NOTION_API_URL, options);
268
 
269
  // 监听流事件
270
  fetchNotionResponse(stream, responseStream, timeoutId);