添加 @kevisual/api 依赖,更新 WebSocket 消息发送逻辑,支持上下文参数

This commit is contained in:
2026-02-05 04:06:34 +08:00
parent 7bbefd8a4a
commit a51d04341e
5 changed files with 46 additions and 3 deletions

View File

@@ -282,6 +282,8 @@ app
ctx.throw('app 未发现');
}
if (detect) {
const appKey = appList.key;
const version = appList.version;
// 自动检测最新版本
const res = await callDetectAppVersion({ appKey, version, username: username || tokenUser.username }, ctx.query.token);
if (res.code !== 200) {