fix: hide qdreader uid in notification title

This commit is contained in:
2026-05-17 16:38:59 +08:00
parent 3ad87d2783
commit a079b5249e
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -23,7 +23,7 @@ function run({ cookie = '', body = '' }) {
{
const qdheader = Buffer.from('123456|device|more').toString('base64').replace(/=+$/, '');
const notices = run({ cookie: `QDHeader=${encodeURIComponent(qdheader)}; QDH=abc` });
assert.equal(notices[0][1], '抓取成功 uid:123456');
assert.equal(notices[0][1], '抓取成功');
assert.match(notices[0][2], /^启点ck /);
assert.equal(notices[0].length, 3);
}
@@ -33,7 +33,7 @@ function run({ cookie = '', body = '' }) {
cookie: 'cmfuToken=abc; QDH=def',
body: JSON.stringify({ Data: { UserId: 987654 } }),
});
assert.equal(notices[0][1], '抓取成功 uid:987654');
assert.equal(notices[0][1], '抓取成功');
}
{
@@ -41,13 +41,13 @@ function run({ cookie = '', body = '' }) {
cookie: 'cmfuToken=abc; QDH=def',
body: JSON.stringify({ Data: { UserInfo: { UserId: 24680 } } }),
});
assert.equal(notices[0][1], '抓取成功 uid:24680');
assert.equal(notices[0][1], '抓取成功');
}
{
const qdheader = Buffer.from('(null)|(null)|1179|2556|(null)|16.10|0|iOS/iPhone/(null)|0|(null)|(null)|475700975|1779006621000|0|(null)|||(null)|(null)|0').toString('base64').replace(/=+$/, '');
const notices = run({ cookie: `QDHeader=${qdheader}; ywguid=120098575768; QDH=abc` });
assert.equal(notices[0][1], '抓取成功 uid:120098575768');
assert.equal(notices[0][1], '抓取成功');
}
{