mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2025-05-23 16:27:41 +08:00
Compare commits
2 Commits
19c5d0aab9
...
1abfe3498f
Author | SHA1 | Date | |
---|---|---|---|
|
1abfe3498f | ||
|
e69393d1bc |
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "um-react",
|
"name": "um-react",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.4.0",
|
"version": "0.4.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
|
@ -69,7 +69,17 @@ export class DatabaseKeyExtractor {
|
|||||||
|
|
||||||
let sql: undefined | string;
|
let sql: undefined | string;
|
||||||
if (this.hasTable(db, 'ShareFileItems')) {
|
if (this.hasTable(db, 'ShareFileItems')) {
|
||||||
sql = `select EncryptionKeyId, EncryptionKey from ShareFileItems where EncryptionKey != '' group by EncryptionKeyId`;
|
sql = `
|
||||||
|
select H, K from (
|
||||||
|
select EncryptionKeyId as H, EncryptionKey as K from ShareFileItems
|
||||||
|
union all
|
||||||
|
select EnHash as H, EnKey as K from DownloadItem
|
||||||
|
) t
|
||||||
|
where
|
||||||
|
t.H is not null and t.H != ''
|
||||||
|
and t.K is not null and t.K != ''
|
||||||
|
group by t.H
|
||||||
|
`;
|
||||||
}
|
}
|
||||||
if (!sql) return null;
|
if (!sql) return null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user