MengYX
4 years ago
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
3 changed files with
8 additions and
8 deletions
-
src/App.vue
-
src/component/upload.vue
-
src/decrypt/kgm.js
|
@ -100,7 +100,7 @@ |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
} |
|
|
} |
|
|
if ((!!updateInfo && process.env.NODE_ENV === 'production') && (!!updateInfo.HttpsFound || |
|
|
if ((!!updateInfo && process.env.NODE_ENV === 'production') && (!!updateInfo.HttpsFound || |
|
|
(!!updateInfo.Found && document.location.protocol !== "https:"))) { |
|
|
(!!updateInfo.Found && window.location.protocol !== "https:"))) { |
|
|
this.$notify.warning({ |
|
|
this.$notify.warning({ |
|
|
title: '发现更新', |
|
|
title: '发现更新', |
|
|
message: '发现新版本 v' + updateInfo.Version + |
|
|
message: '发现新版本 v' + updateInfo.Version + |
|
|
|
@ -47,12 +47,12 @@ |
|
|
this.idle_workers.push(0); |
|
|
this.idle_workers.push(0); |
|
|
// delay to optimize for first loading |
|
|
// delay to optimize for first loading |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
for (let i = 1; i < this.thread_num; i++) { |
|
|
for (let i = 1; i < this.thread_num; i++) { |
|
|
// noinspection JSValidateTypes,JSUnresolvedVariable |
|
|
// noinspection JSValidateTypes,JSUnresolvedVariable |
|
|
this.workers.push(worker().CommonDecrypt); |
|
|
this.workers.push(worker().CommonDecrypt); |
|
|
this.idle_workers.push(i); |
|
|
this.idle_workers.push(i); |
|
|
} |
|
|
} |
|
|
}, 1000); |
|
|
}, 5000); |
|
|
} else { |
|
|
} else { |
|
|
const dec = require('../decrypt/common'); |
|
|
const dec = require('../decrypt/common'); |
|
|
this.workers.push(dec.CommonDecrypt); |
|
|
this.workers.push(dec.CommonDecrypt); |
|
|
|
@ -12,7 +12,7 @@ const VprMaskDiff = [0x25, 0xDF, 0xE8, 0xA6, 0x75, 0x1E, 0x75, 0x0E, |
|
|
0x00] |
|
|
0x00] |
|
|
|
|
|
|
|
|
export async function Decrypt(file, raw_filename, raw_ext) { |
|
|
export async function Decrypt(file, raw_filename, raw_ext) { |
|
|
if (document.location.protocol === "file:") { |
|
|
if (window.location.protocol === "file:") { |
|
|
return { |
|
|
return { |
|
|
status: false, |
|
|
status: false, |
|
|
message: "请使用<a target='_blank' href='https://github.com/ix64/unlock-music/wiki/其他音乐格式工具'>CLI版本</a>进行解锁" |
|
|
message: "请使用<a target='_blank' href='https://github.com/ix64/unlock-music/wiki/其他音乐格式工具'>CLI版本</a>进行解锁" |
|
|