Commit 2b85904
authored
fix(weiyun): bump weiyun-sdk-go to v0.1.4 to fix nil pointer panic on Init (#9561)
The upstream SDK v0.1.3 had a bug in Resp.HasError() that dereferenced
r.Data without a nil check (types.go:38), causing a nil pointer panic
when mounting Weiyun storage if the API returned a response with an
empty data field. v0.1.4 guards the nil access.
LoginType() also changed from int8 to a string enum in v0.1.4, so the
QQ-cookie keepalive check is updated to compare against AccountTypeQQ.
Fixes #95511 parent 488426d commit 2b85904
3 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
| |||
0 commit comments