feat: add remote channels and richer notes

This commit is contained in:
lofyer
2026-08-09 15:48:52 +08:00
parent 417a9fccb6
commit 6c891f3522
69 changed files with 13012 additions and 499 deletions
+6 -2
View File
@@ -82,9 +82,13 @@ function managerHarness(
const record: ServiceRecord = {
settings,
start: vi.fn(async () => {
if (settings.secret === failSecret) {
const secret =
settings.channel === 'weixin'
? settings.token
: settings.secret
if (secret === failSecret) {
throw new Error(
`Authorization secret=${settings.secret} connection failed`
`Authorization secret=${secret} connection failed`
)
}
}),