fix(quqi): empty file link for no vip user#5926
Merged
xhofe merged 4 commits intoAlistGo:mainfrom Jan 21, 2024
Merged
Conversation
Contributor
Author
|
TODO:通过CDN接口获取资源
劣势:
接口:
{
"err": 0,
"msg": "success",
"data": {
"name": "资源名称",
"mime": "application/octet-stream",
"size": 75165025,
"download_type": 1,
"channel_type": 1,
"channel_id": 12,
"url": "https://dynamicoutput.quqi.com/tp7g9/TK8K9cp8gLUJcMQyqGuIFDPRbUmY6ObcUrZxP6_jGVQ/Y29zOi8vdXBsb2FkLTEyNTMyODczMTgvMjc1ZmU1YWFjYWE0NWY0OTM1YmMxZjAyZWF705809672", // CDN下载链接
"expired_time": 1705816872,
"is_encrypted": true,
"encrypted_size": 75201729,
"encrypted_alg": "c3",
"encrypted_key": "BWEB+sAtoUlOH8hOjKlQiyGiTn0y9CGMdAGg=", // 密钥
"passport_id": 9658017,
"request_expired_time": 1705809702
}
} |
Contributor
Author
|
向项目的审核和测试道个歉~~~自己想的不够周到,测试也没做到位...... |
Collaborator
|
已测试 😹 木有必要道歉,大佬们才辛苦哩~ |
xhofe
approved these changes
Jan 21, 2024
EtherealAO
pushed a commit
to EtherealAO/alist
that referenced
this pull request
Apr 12, 2024
* fix(quqi): error returned when uploading a file that existed * fix empty download link for no vip user * fix cannot parse request result --------- Co-authored-by: Andy Hsu <i@nn.ci>
EtherealAO
pushed a commit
to EtherealAO/alist
that referenced
this pull request
Apr 12, 2024
* fix(quqi): error returned when uploading a file that existed * fix empty download link for no vip user * fix cannot parse request result --------- Co-authored-by: Andy Hsu <i@nn.ci>
This file contains hidden or 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
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.
曲奇资源链接分为下载链接和预览链接,非VIP用户无法获取媒体资源文件(视频/图片等)的预览链接,只能获取下载链接
解决方案:先从
/api/doc/getDoc接口获取预览链接,若无法获取则从/api/doc/getDownload接口获取下载链接。经过初步测试,预览链接的内容下载速度会比下载链接的快。限制:非VIP用户同时下载的资源数量存在限制,超过限制后一定时间内禁止下载