mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 修复Poe formkey失效的问题
This commit is contained in:
parent
1a94d92943
commit
15f579aab8
2 changed files with 24 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ import { readFileSync, writeFile } from 'fs'
|
|||
const scrape = async (pbCookie, proxy) => {
|
||||
let option = { headers: { cookie: `${pbCookie}` } }
|
||||
if (proxy) {
|
||||
option.proxy = proxy
|
||||
option.agent = proxy
|
||||
}
|
||||
const _setting = await fetch(
|
||||
'https://poe.com/api/settings',
|
||||
|
|
@ -24,7 +24,7 @@ const scrape = async (pbCookie, proxy) => {
|
|||
const getUpdatedSettings = async (channelName, pbCookie, proxy) => {
|
||||
let option = { headers: { cookie: `${pbCookie}` } }
|
||||
if (proxy) {
|
||||
option.proxy = proxy
|
||||
option.agent = proxy
|
||||
}
|
||||
const _setting = await fetch(
|
||||
`https://poe.com/api/settings?channel=${channelName}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue