You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chenchuchuan
782225fe32
feat(lingxing): 令牌续约接口
按官方文档 /api/auth-server/oauth/refresh 实现:
- 表单 appId + refreshToken,multipart/form-data
- 每个 refresh_token 只能使用一次,响应返回新的 refresh_token
- 成功码 "200",失败时 HTTP 仍 200,靠 code 区分
LingxingAdapter 的刷新策略:
1. previous 有 refresh_token → 走续约
2. 续约抛 AuthException → 退回 appId + appSecret 全量换新
3. previous 为空(首次/被 forceRefresh 删除)→ 全量换新
顺带清理:
- LingxingApi 新增 TOKEN_REFRESH
- 删除 LingxingAdapter 中已迁往子平台的 buildOrderListBody / signedRequest
- 删除相应未使用 import
Co-Authored-By: Claude <noreply@anthropic.com>
|
3 weeks ago |
| .. |
|
src
|
feat(lingxing): 令牌续约接口
|
3 weeks ago |
|
pom.xml
|
build(lingxing): DTO 使用 Lombok 生成访问器
|
3 weeks ago |