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

移动云盘家庭盘上传实现代码 #6337

Closed
4 tasks done
ykxVK8yL5L opened this issue Apr 11, 2024 · 7 comments
Closed
4 tasks done

移动云盘家庭盘上传实现代码 #6337

ykxVK8yL5L opened this issue Apr 11, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@ykxVK8yL5L
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3

Driver used / 使用的存储驱动

139 移动云盘家庭盘

Describe the bug / 问题描述

看了下代码,移动云盘家庭盘的上传功能没有实现,经测可能是签名编码反斜杠的问题,现提供python版上传代码供参考:

FAMILY_UPLOAD_URL = 'https://yun.139.com/orchestration/familyCloud-rebuild/content/v1.0/getFileUploadURL'
payload = json.dumps({"cloudID":args.cloudId,"path":args.path,"operation":0,"cloudType":1,"catalogType":3,"manualRename":2,"fileCount":1,"totalSize":file_size,"uploadContentList":[{"contentName":file_name,"contentSize":file_size,"digest":digest}],"seqNo":seqNo,"commonAccountInfo":{"account":args.account,"accountType":1}})
response = session.post(url = UPLOAD_URL, headers = headers, data = payload)

注意事项:

  • 签名方法和个人云盘的一样,只不过path带有/在url编码的时候需要转换
  • seqNo为生成的uuid
  • header中的x-yun-svc-type和x-SvcType改为2即可

希望有帮助,感谢作者提供这么好的工具

Reproduction / 复现链接

希望上面代码有帮助,感谢作者提供这么好的工具

Config / 配置

再次感谢,期待更新!

Logs / 日志

No response

@ykxVK8yL5L ykxVK8yL5L added the bug Something isn't working label Apr 11, 2024
Copy link

welcome bot commented Apr 11, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@ykxVK8yL5L
Copy link
Author

https://github.com/ykxVK8yL5L/alist
没人回复 只好自己fork了一份修改了,顺便添加了fastwebdav的支持😂

@xhofe
Copy link
Collaborator

xhofe commented Apr 13, 2024

欢迎pr

@ykxVK8yL5L
Copy link
Author

欢迎pr

好的 稍后pr 139家庭云破坏性修改 请仔细审核😂

@ykxVK8yL5L
Copy link
Author

欢迎pr

已经提交PR请过滤修改文件,只合并drivers文件夹下的修改即可

@goldsoft8888
Copy link

这个必须要顶,家庭空间白白浪费了

@ykxVK8yL5L
Copy link
Author

ykxVK8yL5L commented Apr 23, 2024

这个必须要顶,家庭空间白白浪费了

后来发现移动云盘app可以直接从个人云盘复制到家庭云里 早知道就不费事了😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants