feat(weixin_ilink): 出站媒体走通(主人已批的三项)
按官方包 @tencent-weixin/openclaw-weixin 2.4.9 源码对齐: ① 上传由 PUT 改 POST;② 上传凭据读响应头 x-encrypted-param; ③ nativeMediaItem 改为官方 *_item.media.encrypt_query_param 嵌套形状(含 aes_key, 图片优先 image_item.aeskey)。 配合前一版已修的两点(入站按条密钥、媒体失败不阻断文本),机器人现在可主动发出文件/图片。 (逐项测试、变异红行与诚实边界见该切片报告)
This commit is contained in:
1 parent
59a1ac4056
commit
f8f2e9c54c
7 files changed
+847
-246
No files matched your search
@@ -92,6 +92,9 @@ var (
|
||||
// 的上传参数时返回。它与 ErrSessionRejected 是两类失败:前者是协议字段缺失,后者
|
||||
// 是凭据被 iLink 拒绝(必须重新扫码)。
|
||||
ErrNoUploadURL = errors.New("weixin_ilink: getuploadurl returned no upload url")
|
||||
// ErrNoUploadParam 在 CDN 上传返回 200、却没有 `x-encrypted-param` 响应头时返回。
|
||||
// 没有这个凭据就无法告诉对方去哪里下载,**绝不能**拿上传地址冒充它当成功。
|
||||
ErrNoUploadParam = errors.New("weixin_ilink: cdn upload response carries no " + uploadParamHeader + " header")
|
||||
)
|
||||
|
||||
// Config 保存 weixin-ilink 适配器的设置。它由渠道层从环境/配置读取,并可通过
|
||||
|
||||
Reference in new issue
Block a user