alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
39.53k stars 5.14k forks source link

天翼云盘在32位alist上无法挂载 #6449

Closed 3titep closed 1 month ago

3titep commented 1 month ago

Please make sure of the following things

AList Version / AList 版本

v3.34.0

Driver used / 使用的存储驱动

189pc

Describe the bug / 问题描述

在32位alist(linux-musleabihf-armv7l)上,189pc无法挂载,提示错误: json: cannot unmarshal number 300000605123456 into Go struct field FamilyInfoResp.familyInfoResp.familyId of type int 在64位(windows-amd64)上正常挂载 猜测可能是以下代码 https://github.com/alist-org/alist/blob/4cbbda8832449d1ccd9b81b5dbec574912934408/drivers/189pc/types.go#L146 FamilyID intjson:"familyId"`` 里的int溢出导致,改成int64是否能解决?

Reproduction / 复现链接

Config / 配置

Logs / 日志

[GIN] 2024/05/12 - 14:43:13 | 200 | 1.803988ms | 192.168.11.11 | GET "/api/admin/storage/get?id=2" [GIN] 2024/05/12 - 14:43:13 | 200 | 656.995µs | 192.168.11.11 | GET "/api/admin/driver/info?driver=189CloudPC" [[31mERRO[[0m[2024-05-12 14:43:16] failed init storage: json: cannot unmarshal number 300000605123456 into Go struct field FamilyInfoResp.familyInfoResp.familyId of type int [GIN] 2024/05/12 - 14:43:16 | 200 | 826.363255ms | 192.168.11.11 | POST "/api/admin/storage/update"

welcome[bot] commented 1 month ago

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