-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
fix(pikpak): add captcha_token generation function #6775
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
实现思路
参数生成
附上 {
"PAe56I7WZ6FCSkFy77A96jHWcQA27ui80Qy4",
"SUbmk67TfdToBAEe2cZyP8vYVeN",
"1y3yFSZVWiGN95fw/2FQlRuH/Oy6WnO",
"8amLtHJpGzHPz4m9hGz7r+i+8dqQiAk",
"tmIEq5yl2g/XWwM3sKZkY4SbL8YUezrvxPksNabUJ",
"4QvudeJwgJuSf/qb9/wjC21L5aib",
"D1RJd+FZ+LBbt+dAmaIyYrT9gxJm0BB",
"1If",
"iGZr/SJPUFRkwvC174eelKy",
} 算法函数 // GetCaptchaSign 获取验证码签名
func (c *Common) GetCaptchaSign() (timestamp, sign string) {
timestamp = fmt.Sprint(time.Now().UnixMilli())
str := fmt.Sprint(ClientID, ClientVersion, PackageName, c.DeviceID, timestamp)
for _, algorithm := range Algorithms {
str = utils.GetMD5EncodeStr(str + algorithm)
}
sign = "1." + str
return
} |
Three-taile-dragon
changed the title
fix(pikpak): add CaptchaToken generation function
fix(pikpak): add captcha_token generation function
Jul 14, 2024
This was referenced Jul 14, 2024
哈哈 这下实锤了Pikpak就是迅雷的😂😂 |
xhofe
approved these changes
Jul 14, 2024
foxxorcat
reviewed
Jul 14, 2024
foxxorcat
reviewed
Jul 14, 2024
foxxorcat
reviewed
Jul 14, 2024
在 Docker 中使用 这个更新的 的 main 9425a66 |
@Three-taile-dragon 可能是后续的请求有问题 |
#6788 发了新的PR,修复了这个问题 |
ForSourceCodeAnalysis
pushed a commit
to ForSourceCodeAnalysis/alist
that referenced
this pull request
Aug 4, 2024
Three-taile-dragon
added a commit
to loognsss/blist
that referenced
this pull request
Sep 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
改动
Link
函数现在使用新的request
函数发送请求UserID
新增功能
DeviceID
UserAgent
CaptchaToken
request
函数,携带CaptchaToken
、DeviceID
、UserAgent
修复内容
Link
函数返回下载地址无效的问题,现在可以正常播放和下载