fix: hide qdreader uid in notification title
This commit is contained in:
@@ -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], '抓取成功');
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user