fix(weibo): 识别支付域登录失效

This commit is contained in:
yml2213
2026-11-08 14:06:26 +08:00
parent ed15701392
commit 7f7a8f6004
4 changed files with 86 additions and 3 deletions
@@ -8,6 +8,7 @@ generated:
status: stable
verified:
- { by: ai/codex, at: 2026-11-07T19:03:41+08:00 }
- { by: ai/codex, at: 2026-11-08T13:45:00+08:00 }
---
# 微博微豆 CK 接口与兑换链路确认
@@ -723,6 +724,37 @@ data.totalCount
| `400000` | `user not login`,CK 无效 |
| 其他 | 保留服务端 `msg` 和 `trace_id`,不要盲目重试状态变更接口 |
### 10.1 登录页 HTML 与 `retcode=6102`
部分 V+ / 支付域接口在登录态失效时仍返回 HTTP 200,但 `Content-Type` 为 `text/html`,正文是“新浪通行证”跳转页,并包含:
```text
retcode=6102
```
2026-11-08 实测到同一账号可以正常请求:
```text
GET https://vipclub.e.weibo.com/aj/mall/home
-> code=100000
```
但后续请求:
```text
GET https://vipclub.weibo.com/aj/vmember/gfsupport
GET https://vipclub.weibo.com/aj/paycomponent/userinfo
-> text/html + retcode=6102
```
这说明 CK 已经不能访问 V+ 支付/活动域,不能归类为普通“非 JSON 查询失败”。处理约定:
- `retcode=6102` 或跳转 `/sso/login.php` 归类为 `WeiboAuthError`。
- 账号 `ck_check_status` 写为 `invalid`,UI 显示「失效」。
- 提示用户重新登录微博,并在 V+ 页面可用后重新导出、导入完整 CK。
- 不要通过反复刷新、重试支付接口来“恢复”状态。
- 其他未知 HTML 或网关错误保留为 `error`,UI 显示「查询失败」,不要误标成 CK 失效。
## 11. 尚未确认
- 是否只需要 `SUB`,还是必须完整 Cookie Jar。