Skip to content

Commit 33edee2

Browse files
committed
fix(139): declare the PC client type to lift the 50 GB upload cap
The third field of X-Yun-Client-Info is the client type, and the server uses it to pick the single-file upload limit that comes with the account's membership: 50 GB for 9 (web) and 2 (app), 500 GB for 13 (the desktop client). The driver sent 9, so personal_new uploads were rejected with "权益不足" above 50 GB even on accounts that pay for the larger limit. Measured against the live API by declaring a size through /file/create without transferring anything: with 9 the boundary sits exactly at 50 GB, with 13 it moves to exactly 500 GB. Only this field matters. The platform string, the version, the device fingerprint, X-Yun-App-Channel and X-Yun-Svc-Type all leave the boundary where it is.
1 parent 8d77000 commit 33edee2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/139/util.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,9 @@ func (d *Yun139) personalRequest(pathname string, method string, callback base.R
597597
"X-Yun-Api-Version": "v1",
598598
"X-Yun-App-Channel": "10000034",
599599
"X-Yun-Channel-Source": "10000034",
600-
"X-Yun-Client-Info": "||9|7.14.0|chrome|120.0.0.0|||windows 10||zh-CN|||dW5kZWZpbmVk||",
600+
// 第三个字段是客户端类型,服务端按它决定单文件上传上限:
601+
// 9(网页)和 2(App)为 50 GB,13(PC 客户端)为 500 GB。
602+
"X-Yun-Client-Info": "||13|7.14.0|chrome|120.0.0.0|||windows 10||zh-CN|||dW5kZWZpbmVk||",
601603
"X-Yun-Module-Type": "100",
602604
"X-Yun-Svc-Type": "1",
603605
})

0 commit comments

Comments
 (0)