Repository navigation
Releases: liushQAQ/dsh-weixin-plus
Releases · liushQAQ/dsh-weixin-plus
Release list
v1.0.8 — 通用化发布(LICENSE、files 白名单)
dsh-weixin-plus v1.0.8
DSH 微信通道插件:把微信接入 DSH 会话,支持扫码登录、消息转发与文件推送。
本版变更
- 新增
LICENSE(MIT)与files发布白名单,包内不再夹带无关文件。 - README 安装说明去掉钉死的旧 tag,改为跟随默认分支;内部措辞改为中性表述。
- 版本号从 1.0.7 升至 1.0.8(1.0.7 的 tag 停在旧提交,资产缺少 LICENSE 与 files 白名单)。
安装
pnpm add github:liushQAQ/dsh-weixin-plus
# 或使用本 Release 附件
pnpm add ./dsh-weixin-plus-1.0.8.tgz要求
- Node.js >= 20
- DSH >= 0.1.0,
@deepseek-ai/cordis>= 4.0.0 - 依赖
weixin-agent-sdk^0.3.0、qrcode^1.5.4(安装时自动拉取)
资产校验
sha256: 5E77C36C5C3910FB6E490CDF65ACC49EF7C3E369F722FE8DECB99C8A50CF2143
v1.0.7 — 修复微信通道设置面板 HTTP 405(通用版)
dsh-weixin-plus v1.0.7(filepush22)
修复:DSH 设置中心「微信通道」面板报「获取微信通道状态失败: HTTP 405」(同路径 GET 返回 404)。
- 根因①:
connection.rpc.handle()内部会拿「读该服务的 ctx」执行owner.effect(() => owner.webServer.register(route)),该 ctx 经 shadow 反解后落在父 ctx 上(其 inject 无webServer)⇒ 抛cannot get property "webServer" without inject,RPC 通道注册失败。 - 根因②:RPC 通道与 HTTP 备用口同注册
{kind:'prefix', path:'/dsh-weixin-plus'}⇒webserver: duplicate prefix route,实例一换路由就丢。 - 修法:①HTTP 备用口改独立路径
/dsh-weixin-plus-http;②RPC 通道改在apply体内直接注册,并用ctx.extend({ webServer: ctx.get('webServer') })把webServer绑成自有属性后再读.connection(与官方dsh-mnemon同款写法);③只注册带斜杠通道,重复注册幂等放过。 - 验证:
POST/GET /dsh-weixin-plus/status由 405/404 → 401(路由已注册、匿名需认证);POST /dsh-weixin-plus-http/status→ 200 并返回真实状态(账号、connected、isPollingOwner)。
安装(通用,无机器专有路径):
npm i github:liushQAQ/dsh-weixin-plus#v1.0.7
# 或用本页附件:npm i ./dsh-weixin-plus-1.0.7.tgz再把 dsh-weixin-plus 加入 profile 的 dsh.profile.bundles。详见 README。
v1.0.2 - 增强通用性与修复模块导入
修复与优化
- 移除本机私有硬编码路径(E:... 与 Administrator 目录),改用跨平台 homedir() 与 DSH_HOME
- 规范化 Node.js 内置模块导入(显式引入 existsSync, mkdirSync,
eadFileSync, writeFileSync, unlinkSync, join, homedir,
andomBytes, createRequire),杜绝外部用户安装运行时抛出 ReferenceError - 提升跨平台与公共安装兼容性