Skip to content
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

位置签到validate错误 #31

Open
TarikVon opened this issue Nov 22, 2023 · 5 comments
Open

位置签到validate错误 #31

TarikVon opened this issue Nov 22, 2023 · 5 comments

Comments

@TarikVon
Copy link

经过在本地服务器和 https://cx.kuizuo.cn/ 测试,仍然报了validate错误,本地服务器已添加 validate: '', 参数

Originally posted by @TarikVon in #30 (comment)

@kuizuo
Copy link
Owner

kuizuo commented Nov 22, 2023

已重新修复了 https://github.com/kuizuo/chaoxing-sign/releases/tag/v0.5.2

目前来看请求需要延迟提交,否则就出提示 validate,目前 预请求后 延迟间隔在 200 ms。同时在预请求后 重新抓包把两个请求给复现

// 两条必要请求! 位置签到必备
const { body: data } = await this.http.get(
'https://mobilelearn.chaoxing.com/pptSign/analysis',
{
searchParams: {
vs: 1,
DB_STRATEGY: 'RANDOM',
aid: activity.id,
},
responseType: 'text',
},
)
const code = data.match(/code='\+'(.*?)'/)?.[1]
const { body: data1 } = await this.http.get(
'https://mobilelearn.chaoxing.com/pptSign/analysis2',
{
searchParams: {
DB_STRATEGY: 'RANDOM',
code,
},
responseType: 'text',
},
)
console.log('analysis 结果: ', data1)

@TarikVon
Copy link
Author

老哥,我现在还是这个问题,

00:10:46 共 1 个账号准备签到
00:10:48 课程: 测试 活动: 签到 [位置签到]结果: validate
00:10:48 共 1 个账号准备签到
00:10:50 课程: 测试 活动: 签到 [位置签到]结果: validate

我在你的站点上使用的账号是[email protected]

@kuizuo
Copy link
Owner

kuizuo commented Nov 22, 2023

老哥,我现在还是这个问题,

00:10:46 共 1 个账号准备签到
00:10:48 课程: 测试 活动: 签到 [位置签到]结果: validate
00:10:48 共 1 个账号准备签到
00:10:50 课程: 测试 活动: 签到 [位置签到]结果: validate

我在你的站点上使用的账号是[email protected]

延迟代码忘加 await 了😅,现已修复,感谢反馈

@kuizuo
Copy link
Owner

kuizuo commented Nov 22, 2023

我在本地测试是没问题的,但是部署到服务器上就提示validate,我怀疑某星官方增加了 ip 检测手段。

@d4renk
Copy link

d4renk commented Feb 9, 2024

我在本地测试是没问题的,但是部署到服务器上就提示validate,我怀疑某星官方增加了 ip 检测手段。

是的
签到提示validate 更换服务器IP就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants