Skip to content

Add QIANXIN CloudLock V8.0.8 machine list query service#244

Open
cc06 wants to merge 1 commit into
chaitin:mainfrom
cc06:add-qianxin-cloudlock-v8-0-8
Open

Add QIANXIN CloudLock V8.0.8 machine list query service#244
cc06 wants to merge 1 commit into
chaitin:mainfrom
cc06:add-qianxin-cloudlock-v8-0-8

Conversation

@cc06

@cc06 cc06 commented Jun 25, 2026

Copy link
Copy Markdown

Closes #240

接入设备

奇安信网神云锁服务器安全管理系统(椒图 / JiaoTu)

设备版本

V8.0.8 Hotfix1

认证方式

web 会话 token:请求头 token: <会话token> + menuCode(服务器列表页 5101)+ Origin/Referer,token 经 secret.token 外部传入(有时效)。

实现方法

  • QueryMachineList — POST /api/assetSrv/machineController/searchMachineList(menuCode 5101)
    • 请求体按真机对齐:searchInfoList / groupUuid / currentPage / maxResults / ifShowCurrentGroupInfo + 各过滤项(未设置下发空串)
    • 成功判定:响应 {"code":"1","msg":"成功","data":{list,total}} 的 code==="1"

测试命令

cd services
npm run validate -- --service-dir qianxin__cloudlock_v8-0-8
npm test -- --service-dir qianxin__cloudlock_v8-0-8 --coverage
npm run pack:check

本地结果:validate 通过;24 用例全过,实现文件行 100% / 分支 90% / 函数 100%;pack:check 通过。

设备验证截图

真机执行 query-machine-list 返回 code:"1" 与服务器列表(token / host / 响应敏感数据已打码),见下方附图。

image

New service package qianxin__cloudlock_v8-0-8 for QIANXIN NetSec CloudLock
(JiaoTu) server security V8.0.8 Hotfix1. Implements QueryMachineList against
POST /api/assetSrv/machineController/searchMachineList using the web session
token (token header + menuCode 5101), aligned to the real-device request and
response. Wire it into the root dispatcher, bin wrapper, and package manifest.
@innomentats

Copy link
Copy Markdown
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

奇安信-云锁服务器安全管理系统

2 participants