-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这个方法还是会被拦截 #1
Comments
你是通过 API 登录的吗? |
是的就是用的你的方法 |
我还特意等了两天,然后用我的账号测试了下,是没问题的。🤣 |
Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
请求被拦截应该是这样的错误: |
是的,就是这个接口。你是一个帐号可以,一个不行吗? |
我的两个号,另一个号不是不行,他是半个小时之后还是会过期,我没找到原因,从这个抓出来的需要加两个==在结尾就可以了,刚刚试了抓包这个token在结尾加==是可以用的,我从别人的一个浏览器插件上找到了生成token的方法之前一直不行现在知道原因了,我再试试吧 |
我在抓包过程中也看到这个接口了,每次在请求 https://xinghuo.xfyun.cn/iflygpt-chat/u/chat_message/chat 接口前都会请求 https://riskct.geetest.com/g2/api/v1/pre_load 这个接口;根据 pro_load 接口返回的结果,我猜应该是调用某些 js 函数通过 GtToken 是 base64 编码序列,末尾可能会有 == 符号。 |
一个账号的访问量超过某个值,就开始验证模式,避免服务器垮掉,所以新账号都畅通 |
如果讯飞也走 OpenAI 那种运营模式,个人为此买单的可能性应该不高,使用 web 免费限量接口也是一种选择吧。 |
这个GtToken是preload接口返回的加密文件加密的,可不是不变的,那个当前请求被拦截是跳了人机验证了 |
目前使用固定的 GtToken 还是可以的,如果有好的 idea,欢迎提交 PR。 |
}); |
JavaScript 在这方面有天然优势,不过我不太熟悉。我抽空看下能不能转成 Python 脚本。感谢! |
我也尝试更换新的GtToken也不行,就必须得用官网发送一条消息然后半个小时有效,你可以参考一下https://github.com/chathub-dev/chathub/tree/main/src/app/bots/xunfei
我看他的这个就可以
The text was updated successfully, but these errors were encountered: