mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-30 17:06:59 +00:00
Compare commits
4
Commits
v0.6.1
...
75d786c747
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75d786c747 | ||
|
|
10e857a903 | ||
|
|
537391ed03 | ||
|
|
881aa5e44c |
No files matched your search
@@ -7,7 +7,9 @@ body:
|
|||||||
value: |
|
value: |
|
||||||
### Windows 客户端
|
### Windows 客户端
|
||||||
|
|
||||||
目前 Windows 客户端仅支持 19.51 或更低版本下载的歌曲文件。
|
目前 Windows 客户端支持 19.57 至 22.76(目前最新版)下载的歌曲文件,但需要导入由 [qmpc-mmkv-cli](https://git.um-react.app/um/qmpc-mmkv/releases) 提取的密钥文件 `qmpc-mmkv-v1.mmkv`。
|
||||||
|
|
||||||
|
使用 19.51 或更低版本下载的歌曲文件无需密钥。
|
||||||
|
|
||||||
* [web.archive.org 镜像](https://web.archive.org/web/2023/https://dldir1v6.qq.com/music/clntupate/QQMusic_Setup_1951.exe)
|
* [web.archive.org 镜像](https://web.archive.org/web/2023/https://dldir1v6.qq.com/music/clntupate/QQMusic_Setup_1951.exe)
|
||||||
* [通过 Telegram 下载](https://t.me/um_lsr_ch/24)
|
* [通过 Telegram 下载](https://t.me/um_lsr_ch/24)
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
pnpm_config_registry: https://registry.npmmirror.com
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
- [x] 蜻蜓 FM (`.qta`)
|
- [x] 蜻蜓 FM (`.qta`)
|
||||||
- 需要提取设备 ID。
|
- 需要提取设备 ID。
|
||||||
|
|
||||||
[^qm-key-pc]: QQ 音乐的 PC 客户端仅支持 v19.51 或更低版本。
|
[^qm-key-pc]: QQ 音乐的 PC 客户端(v19.57 至 v22.76)需要导入由 [qmpc-mmkv-cli](https://git.um-react.app/um/qmpc-mmkv/releases) 提取的密钥文件 `qmpc-mmkv-v1.mmkv`。
|
||||||
|
|
||||||
[^qm-key-android]: QQ 音乐的安卓客户端支持需要获取超级管理员权限后提取密钥数据库并导入后使用。
|
[^qm-key-android]: QQ 音乐的安卓客户端支持需要获取超级管理员权限后提取密钥数据库并导入后使用。
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#### 2、检查您的平台。
|
#### 2、检查您的平台。
|
||||||
|
|
||||||
日前,<mark>仅 Windows 客户端 v19.43 或以下版本</mark>下载的歌曲无需密钥,其余平台的官方正式版本均需要提取密钥。
|
日前,Windows 客户端 <mark>v19.57 至 v22.76</mark>(目前最新版)下载的歌曲需要导入由 [qmpc-mmkv-cli](https://git.um-react.app/um/qmpc-mmkv/releases) 提取的密钥文件 `qmpc-mmkv-v1.mmkv`;<mark>v19.51 或更低版本</mark>下载的歌曲无需密钥。其余平台的官方正式版本均需要提取密钥。
|
||||||
|
|
||||||
> iOS 用户提取歌曲困难,建议换用电脑操作;Android 用户提取密钥需要 root,也建议用电脑操作。
|
> iOS 用户提取歌曲困难,建议换用电脑操作;Android 用户提取密钥需要 root,也建议用电脑操作。
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "um-react",
|
"name": "um-react",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.6.1",
|
"version": "0.6.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { HiWord } from '~/components/HelpText/HiWord';
|
|||||||
import NoopExecutable from './assets/noop.exe?base64';
|
import NoopExecutable from './assets/noop.exe?base64';
|
||||||
import NoopExecutableSource from './assets/noop.asm.txt?base64';
|
import NoopExecutableSource from './assets/noop.asm.txt?base64';
|
||||||
|
|
||||||
|
const QMPC_MMKV_RELEASES_URL = 'https://git.um-react.app/um/qmpc-mmkv/releases';
|
||||||
const PC_CLIENT_URL = 'https://web.archive.org/web/2023/https://dldir1v6.qq.com/music/clntupate/QQMusic_Setup_1951.exe';
|
const PC_CLIENT_URL = 'https://web.archive.org/web/2023/https://dldir1v6.qq.com/music/clntupate/QQMusic_Setup_1951.exe';
|
||||||
const PC_CLIENT_TG_URL = 'https://t.me/um_lsr_ch/24';
|
const PC_CLIENT_TG_URL = 'https://t.me/um_lsr_ch/24';
|
||||||
|
|
||||||
@@ -10,14 +11,20 @@ export function InstructionsPC() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<p className="mt-2">
|
<p className="mt-2">
|
||||||
使用 <span className="text-error">19.57 或更高版本</span>下载的歌曲文件
|
使用 <span className="text-primary">19.57 至 22.76</span>下载的歌曲文件
|
||||||
<HiWord>需要导入密钥</HiWord>。
|
<HiWord>需要导入密钥</HiWord>。
|
||||||
<br />
|
|
||||||
目前未公开密钥获取方式,因此不支持。
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p className="mt-4">
|
<p className="mt-4">
|
||||||
使用 <span className="text-primary">19.51 或更低版本</span>下载的歌曲文件
|
请从{' '}
|
||||||
|
<ExtLink className="link-info" href={QMPC_MMKV_RELEASES_URL}>
|
||||||
|
qmpc-mmkv-cli
|
||||||
|
</ExtLink>{' '}
|
||||||
|
获取工具,提取密钥文件 <code>qmpc-mmkv-v1.mmkv</code> 后在本页导入。
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p className="mt-4">
|
||||||
|
使用 <span className="text-base-content/70">19.51 或更低版本</span>下载的歌曲文件
|
||||||
<HiWord>无需密钥</HiWord>。
|
<HiWord>无需密钥</HiWord>。
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export class MMKVParser {
|
|||||||
|
|
||||||
constructor(private view: DataView<ArrayBuffer>) {
|
constructor(private view: DataView<ArrayBuffer>) {
|
||||||
const payloadLength = view.getUint32(0, true);
|
const payloadLength = view.getUint32(0, true);
|
||||||
this.length = 4 + payloadLength;
|
this.length = Math.min(4 + payloadLength, view.byteLength);
|
||||||
|
|
||||||
// skip unused str
|
// skip unused str
|
||||||
this.readInt();
|
this.readInt();
|
||||||
|
|||||||
@@ -26,3 +26,58 @@ test('able to handle empty value', () => {
|
|||||||
expect(parser.readKey()).toEqual('1');
|
expect(parser.readKey()).toEqual('1');
|
||||||
expect(parser.readStringValue()).toEqual('2');
|
expect(parser.readStringValue()).toEqual('2');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('eof payload boundary', () => {
|
||||||
|
// Small string records: "a" -> "one" and "b" -> "two".
|
||||||
|
const firstRecord = Buffer.from([0x01, 0x61, 0x04, 0x03, 0x6f, 0x6e, 0x65]);
|
||||||
|
const secondRecord = Buffer.from([0x01, 0x62, 0x04, 0x03, 0x74, 0x77, 0x6f]);
|
||||||
|
const payload = Buffer.concat([Buffer.from([0x7f]), firstRecord, secondRecord]);
|
||||||
|
const allEntries = [
|
||||||
|
['a', 'one'],
|
||||||
|
['b', 'two'],
|
||||||
|
];
|
||||||
|
|
||||||
|
const makeView = (payloadLength: number) => {
|
||||||
|
const header = Buffer.alloc(4);
|
||||||
|
header.writeUInt32LE(payloadLength);
|
||||||
|
return makeViewFromBuffer(Buffer.concat([header, payload]));
|
||||||
|
};
|
||||||
|
|
||||||
|
const readEntries = (parser: MMKVParser) => {
|
||||||
|
const entries: [string, string | null][] = [];
|
||||||
|
while (!parser.eof) {
|
||||||
|
entries.push([parser.readKey(), parser.readStringValue()]);
|
||||||
|
}
|
||||||
|
return entries;
|
||||||
|
};
|
||||||
|
|
||||||
|
test.each([payload.byteLength + 4, 0xffffffff])('clamps oversized payload length %i to the view', (payloadLength) => {
|
||||||
|
const parser = new MMKVParser(makeView(payloadLength));
|
||||||
|
|
||||||
|
expect(readEntries(parser)).toEqual(allEntries);
|
||||||
|
expect(parser.eof).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('reads all records when the payload length is exact', () => {
|
||||||
|
const parser = new MMKVParser(makeView(payload.byteLength));
|
||||||
|
|
||||||
|
expect(readEntries(parser)).toEqual(allEntries);
|
||||||
|
expect(parser.eof).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('stops at the declared payload boundary with another valid record remaining', () => {
|
||||||
|
const parser = new MMKVParser(makeView(1 + firstRecord.byteLength));
|
||||||
|
|
||||||
|
expect(readEntries(parser)).toEqual([allEntries[0]]);
|
||||||
|
expect(parser.eof).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('clamps to the DataView length with another valid record outside the view', () => {
|
||||||
|
const fullView = makeView(payload.byteLength + 4);
|
||||||
|
const view = new DataView(fullView.buffer, 0, 4 + 1 + firstRecord.byteLength);
|
||||||
|
const parser = new MMKVParser(view);
|
||||||
|
|
||||||
|
expect(readEntries(parser)).toEqual([allEntries[0]]);
|
||||||
|
expect(parser.eof).toBe(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in new issue
Block a user