更新 CNB 配置获取逻辑,修复未授权问题,添加测试文件

This commit is contained in:
xiongxiao
2026-03-13 04:33:16 +08:00
committed by cnb
parent cda1d0dc8f
commit d9fda44e78
4 changed files with 15 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
const token = 'st_logh1b3ozq2resntxlnk4bccao0bon8e'
import { CNBManager } from "../../modules/cnb-manager.ts"
const cnbManager = new CNBManager()
const cnbItem = await cnbManager.getCNB({ username: 'root', kevisualToken: token });
console.log('cnbItem', cnbItem)