We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
不知道是不是bug,还是写法问题,但在我上个版本3.24.1113以及3.24.1109都没有问题,其他暂未测试但更新后会堆栈溢出,根据打印日志排查是在header中执行一个ajax会一直执行,直至堆栈溢出报错
No response
3.24.112016
14
VIVO
The text was updated successfully, but these errors were encountered:
请求头不能写ajax,不然会递归,之前有修复,但是发现可能有问题现在又删掉了 你能解决的话可以PR
Sorry, something went wrong.
No branches or pull requests
确认 / Assignments
问题描述 / Describe Bugs
不知道是不是bug,还是写法问题,但在我上个版本3.24.1113以及3.24.1109都没有问题,其他暂未测试但更新后会堆栈溢出,根据打印日志排查是在header中执行一个ajax会一直执行,直至堆栈溢出报错
复现步骤 / How to reproduce
function md5ToUuid(md5String) { const uuid = md5String.substr(0, 8) + '-' + md5String.substr(8, 4) + '-' + md5String.substr(12, 4) + '-' + md5String.substr(16, 4) + '-' + md5String.substr(20); return uuid; } // java.log(baseUrl) var cookie = source.getLoginHeader() || "" var uuid = java.randomUUID().toString().toUpperCase() var deviceUUID = md5ToUuid(java.md5Encode(java.androidId())).toString().toString().toUpperCase() java.log(deviceUUID) var time = Date.now() var security = JSON.parse(java.ajax(`https://ikun.laoguantx.top:45554/sfapi/sign?uuid=${uuid}&time=${time}&deviceuuid=${deviceUUID}`)).data var header = { cookie: cookie, "user-agent": `boluobao/5.0.60(android;29)/H5/${deviceUUID.toLowerCase()}/H5`, sfsecurity: `nonce=${uuid}×tamp=${time}&devicetoken=${deviceUUID}&sign=${security}`, authorization: "Basic YW5kcm9pZHVzZXI6MWEjJDUxLXl0Njk7KkFjdkBxeHE=", accept: "application/vnd.sfacg.api+json;version=1" } JSON.stringify(header) 代码如上,任意新建一个书源,将其放在书源header中,搜索随意填个链接,然后调试,会报java.lang.StackOverflowError: stack size 1039KB确认 / Assignment
其他信息 / Additions
No response
日志提交 / Relevant log output
No response
阅读版本 / Legado version
3.24.112016
Android版本 / Android version
14
机型 / Model
VIVO
The text was updated successfully, but these errors were encountered: