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.
lml
2bc5da043a
feat(lingxing): 按 2026 版官方算法重写签名并抽出统一请求层
签名:
- 签名范围改为「业务参数 + access_token + app_key + timestamp」,按 key 升序拼接
- MD5 输出 32 位大写,再用 appId 做 AES/ECB/PKCS5Padding 加密并 Base64
- 集合参数先 JSON 序列化再参与签名
- appId 不是 16/24/32 字节时直接抛 IllegalArgumentException,不静默补齐
请求层:
- 新增 LingxingEnvelope,业务错误看 body.code,映射限流/鉴权/业务异常
- 新增 LingxingRateLimiter,按接口路径分桶,订单列表 10 req/s
- 新增 LingxingRequestFactory,access_token 只进 Authorization 但参与签名
- 订单列表请求体改为 start_time/end_time(epoch 秒)+ platform_code/store_id 数组
- 分页改为「满页 + total 兜底」,避免最后一页多发一次请求
- 令牌缓存键从 store_id 改为 appKey,同 app 多店铺共用 token
- 映射异常包装成 ValidationException 并保留原始报文,避免以 NPE 形式冒出
|
3 weeks ago |
| .. |
|
src
|
feat(lingxing): 按 2026 版官方算法重写签名并抽出统一请求层
|
3 weeks ago |
|
pom.xml
|
build(lingxing): DTO 使用 Lombok 生成访问器
|
3 weeks ago |