This commit is contained in:
lyswhut
2022-04-26 13:04:28 +08:00
parent c9cf30692f
commit 3c9bb74b61
8 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export default {
return Promise.resolve({
list,
allPage: this.allPage,
limit: limit,
limit,
total: this.total,
source: 'bd',
})
+3 -3
View File
@@ -66,7 +66,7 @@ export default {
},
}
let encrypted = CryptoJS.AES.encrypt(strData, key, {
iv: iv,
iv,
blockSize: 16,
mode: CryptoJS.mode.CBC,
format: JsonFormatter,
@@ -74,9 +74,9 @@ export default {
let ciphertext = encrypted.toString().ct
let sign = toMD5('baidu_taihe_music' + ciphertext + timestamp)
let jsonRet = {
timestamp: timestamp,
timestamp,
param: ciphertext,
sign: sign,
sign,
}
return jsonRet
},
+1 -1
View File
@@ -19,7 +19,7 @@ const aesDecrypt = function(cipherBuffer, mode, key, iv) {
const rsaEncrypt = (buffer, key) => {
buffer = Buffer.concat([Buffer.alloc(128 - buffer.length), buffer])
return publicEncrypt({ key: key, padding: constants.RSA_NO_PADDING }, buffer)
return publicEncrypt({ key, padding: constants.RSA_NO_PADDING }, buffer)
}
export const weapi = object => {
+1 -1
View File
@@ -27,7 +27,7 @@ export const setAllowShowUserApiUpdateAlert = (id, enable) => {
export const saveMyList = data => {
rendererSend(NAMES.mainWindow.save_playlist, {
type: 'myList',
data: data,
data,
})
}
export const saveDownloadList = list => {